diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-02 19:25:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-02 19:25:11 +0100 |
commit | 412d2fdba6a55deefee87bc3d238a4944d79f3d1 (patch) | |
tree | 47af8b0bc9bcbdd99cd099f8ecae4e64d538f4b0 | |
parent | Removed now useless script (diff) | |
download | joe-scripts-412d2fdba6a55deefee87bc3d238a4944d79f3d1.tar.gz joe-scripts-412d2fdba6a55deefee87bc3d238a4944d79f3d1.tar.bz2 joe-scripts-412d2fdba6a55deefee87bc3d238a4944d79f3d1.tar.xz joe-scripts-412d2fdba6a55deefee87bc3d238a4944d79f3d1.tar.zst joe-scripts-412d2fdba6a55deefee87bc3d238a4944d79f3d1.zip |
Indent update
-rwxr-xr-x | src/update/gitjoe.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/update/gitjoe.pl b/src/update/gitjoe.pl index bc78c05..5907d58 100755 --- a/src/update/gitjoe.pl +++ b/src/update/gitjoe.pl @@ -47,7 +47,7 @@ sub stagit_generate { system( '/usr/local/bin/stagit', $home_dir . $repos[$i] . '/' - ); + ); copy('../style.css', './style.css'); copy('../logo.png', './logo.png'); $i += 1; @@ -57,22 +57,22 @@ sub stagit_generate { '/usr/local/bin/dash', '-c', '/usr/local/bin/stagit-index ' . $repos_line . '>index.html' - ); + ); system( '/usr/local/bin/dash', '-c', "/usr/local/bin/gsed -i 's/<td>" . $user . "<\\/td>/<td class=\"td_author\">" . $user . "<\\/td>/g' index.html" - ); + ); system( '/usr/local/bin/dash', '-c', "/usr/local/bin/gsed -i 's/<td><span class=\"desc\">Repositories<\\/span><\\/td>/<td><span class=\"desc\"><h1>" . $user . " - Repositories<\\/h1><\\/span><\\/td><\\/tr><tr><td><\\/td><td>Back to <a href=\"https:\\/\\/git.jozanleclerc.xyz\\/\">GitJoe<\\/a><\\/td><\\/tr>/' index.html" - ); + ); system( '/usr/local/bin/dash', '-c', "/usr/local/bin/gsed -i 's/log.html/files.html/g' index.html" - ); + ); return; } @@ -98,7 +98,7 @@ sub main { '/bin/rm', '-rf', SITE_DIR . $users[$i] - ); + ); print "Moving user " . colored($users[$i], 'bold green') . " newly generated directory to " . colored(SITE_DIR, 'bold') . ".\n"; move(TMP_DIR . $users[$i], SITE_DIR . $users[$i]); $i += 1; |