diff --git a/install.sh b/install.sh index 6ab5574eb0e564d1ab6e23b5ed8a7bf60f04bfc5..64bac209bf8f220fffc7bd30441d747dae2bdd80 100755 --- a/install.sh +++ b/install.sh @@ -170,7 +170,6 @@ main() { fi CACHE_DIR="$(echo_cache_dir)" - mkdir -p "$CACHE_DIR" if [ "$METHOD" = standalone ]; then install_standalone @@ -234,10 +233,11 @@ fetch() { FILE="$2" if [ -e "$FILE" ]; then - echoh "+ Reusing $CACHE_DIR/${URL##*/}" + echoh "+ Reusing $FILE" return fi + sh_c mkdir -p "$CACHE_DIR" sh_c curl \ -#fL \ -o "$FILE.incomplete" \