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)
|
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
|
||||||
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
|
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
|
||||||
printf "${YELLOW}Zsh is not installed!${NORMAL} Installing zsh\n"
|
printf "${YELLOW}Zsh is not installed!${NORMAL} Installing zsh\n"
|
||||||
apt-get install zsh
|
apt-get install zsh -y
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
unset CHECK_ZSH_INSTALLED
|
unset CHECK_ZSH_INSTALLED
|
||||||
|
|
||||||
@ -117,4 +116,9 @@ main() {
|
|||||||
env zsh
|
env zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]
|
||||||
|
then echo "Please run as root"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user