From 898f4b5809371c4ea5016d4be280e80471d7b666 Mon Sep 17 00:00:00 2001 From: Paul S Date: Wed, 5 May 2021 12:33:17 +0200 Subject: [PATCH] fixed problem with the Bash/ZSH config --- install.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ab6e3fc..2852df2 100755 --- a/install.sh +++ b/install.sh @@ -66,15 +66,24 @@ echo -e "$targetdir2_1 $targetdir $targetdir2_2" sleep 1 # alias entry in .bashrc or .zshrc -#zshrc +# .zshrc case 1 echo $SHELL if [ $SHELL = "/usr/bin/zsh" ]; then echo "alias backuppy='sudo $mydir/Backuppy.sh'" >> ~/.zshrc fi -#bashrc +# zshrc case 2 +echo $SHELL +if [ $SHELL = "/bin/zsh" ]; then + echo "alias backuppy='sudo $mydir/Backuppy.sh'" >> ~/.zshrc +fi +#bashrc case 1 if [ $SHELL = "/usr/bin/bash" ]; then echo "alias backuppy='sudo $mydir/Backuppy.sh'" >> ~/.bashrc fi +# bashrc case 2 +if [ $SHELL = "/bin/bash" ]; then + echo "alias backuppy='sudo $mydir/Backuppy.sh'" >> ~/.bashrc +fi # collects all the information needed to execute the rsync command and creates it. echo -e "$collect \n"