From 09122742308cf3411aa44ae9f4d92c452b8f6f22 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 22 Jun 2023 12:18:32 +0400 Subject: [PATCH] fix minor miswriting as linter suggest --- init.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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