diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-09 17:34:01 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-09 17:34:01 +0200 |
commit | 1cf4611946b418b49a071b78d7f5da3649483a8d (patch) | |
tree | cb7d86b9342e1574c8a8bf4cbb81d028ad13fc30 /src/update | |
parent | Limited commits to 20 (diff) | |
download | joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.gz joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.bz2 joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.xz joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.zst joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.zip |
Added fine end script messages
Diffstat (limited to 'src/update')
-rwxr-xr-x | src/update/gitjoe.pl | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/update/gitjoe.pl b/src/update/gitjoe.pl index a0f4e59..b2d9269 100755 --- a/src/update/gitjoe.pl +++ b/src/update/gitjoe.pl @@ -27,14 +27,12 @@ sub stagit_generate { my $site_dir = '/usr/local/www/git-jozan/'; my $home_dir = '/usr/home/' . $user . '/'; chdir($site_dir); - # system( - # '/usr/local/bin/dash', - # '-c', - # '/bin/rm -rf ' . $user . '/' - # ); - if (!(-e $user . '/')) { - mkdir($user . '/', 0755); - } + system( + '/usr/local/bin/dash', + '-c', + '/bin/rm -rf ' . $user . '/' + ); + mkdir($user . '/', 0755); my $i = 0; my $repos_line = ""; copy('./css/gitjoe.css', './' . $user . '/style.css'); @@ -43,9 +41,7 @@ sub stagit_generate { chdir($site_dir . $user . '/'); $repos_line = $repos_line . ' ' . $home_dir . $repos[$i] . '/'; substr($repos[$i], -4) = ""; - if (!(-e $repos[$i] . '/')) { - mkdir($repos[$i] . '/', 0755); - } + mkdir($repos[$i] . '/', 0755); chdir($site_dir . $user . '/' . $repos[$i] . '/'); $repos[$i] = $repos[$i] . '.git'; print "Indexing " . $user . '/' . $repos[$i] . ".\n"; |