diff --git a/install.sh b/install.sh index a8b04f5..2c770df 100755 --- a/install.sh +++ b/install.sh @@ -4,14 +4,14 @@ cd "$(dirname "$0")" || exit echo "Press y or n:" for f in $(git ls-files); do - [[ "$f" =~ readme|install.sh ]] && continue + [[ $f =~ readme|install.sh ]] && continue - REPLY=; until [[ "$REPLY" =~ [ynYN] ]]; do + REPLY=; until [[ $REPLY =~ [ynYN] ]]; do read -rn1 -p "$f? "; echo done - [[ "$REPLY" =~ [nN] ]] && continue + [[ $REPLY =~ [nN] ]] && continue - [[ "$f" == */* ]] && mkdir -p "$HOME/.${f%/*}" - ln -sf "$PWD/$f" "$HOME/.$f" + [[ $f == */* ]] && mkdir -p "$HOME/.${f%/*}" + cp "$PWD/$f" "$HOME/.$f" done