Browse Source

fix minor miswriting as linter suggest

master
pvincent 1 year ago
parent
commit
0912274230
  1. 6
      init.sh

6
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

Loading…
Cancel
Save