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