diff --git a/init.sh b/init.sh index 15d2a9a..198b021 100755 --- a/init.sh +++ b/init.sh @@ -2,6 +2,8 @@ set -Eeuo pipefail +CURDIR=$PWD + #remove /etc/skel/.bashrc if [ -e /etc/skel/.bashrc ]; then rm /etc/skel/.bashrc @@ -13,9 +15,9 @@ declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc) for i in "${arr[@]}"; do if [ ! -f "$i.$ORIGINAL" ]; then - echo "$i needs installation $(basename $i)" + echo "$i needs installation $(basename \\"$i\\")" mv "$i" "$i.$ORIGINAL" - ln -s "$CURDIR/$(basename $i)" "$i" + ln -s "$CURDIR/$(basename \\"$i\\")" "$i" else echo "<$i> already overriden!" fi