From 1d8e34c46afeaaca1e94aee41100f44f8a49dc6b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 26 Mar 2016 20:07:01 +0000 Subject: [PATCH] Updated url list --- README.md | 2 +- mkurllist | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8490277..82a4b9a 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ Usage: ```gigaclone output_dir``` If no output dir is specified, . is the default. [Download the script](https://github.com/danog/gigaclone/raw/master/gigaclone) or -Or [view](https://daniil.it/gigaclone/tree.html) the dir listing of the website. +Or [view](https://daniil.it/gigaclone/tree) the dir listing of the website. diff --git a/mkurllist b/mkurllist index 6f355ad..8e4ea5a 100755 --- a/mkurllist +++ b/mkurllist @@ -89,14 +89,15 @@ cd $tmp git clone https://$GH_TOKEN@github.com/danog/gigaclone.git $tmp/git cd $tmp/git config - cp $dir/* . + cp -a $dir/* . rm -rf tmp gigaclone.log git add -A git commit -m "Updated url list" git push origin master &>/dev/null git checkout gh-pages - cp $dir/tree.html . + rm -r tree + cp -a $dir/tree . git add -A git commit -m "Updated dir tree" git push origin gh-pages &>/dev/null