Update 'tools/install.sh'
This commit is contained in:
parent
81afd854b2
commit
41d0ccea2b
@ -27,8 +27,7 @@ main() {
|
||||
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
|
||||
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
|
||||
printf "${YELLOW}Zsh is not installed!${NORMAL} Installing zsh\n"
|
||||
apt-get install zsh
|
||||
exit
|
||||
apt-get install zsh -y
|
||||
fi
|
||||
unset CHECK_ZSH_INSTALLED
|
||||
|
||||
@ -117,4 +116,9 @@ main() {
|
||||
env zsh
|
||||
}
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
main
|
||||
|
Loading…
Reference in New Issue
Block a user