fixed problem with the Bash/ZSH config
This commit is contained in:
parent
c281a0a588
commit
898f4b5809
1 changed files with 11 additions and 2 deletions
13
install.sh
13
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"
|
||||
|
|
Loading…
Reference in a new issue