pull/1142/head
sunerpy 2022-03-25 10:23:26 +08:00 committed by jmgao
parent 5a9459d831
commit 82d4afaabc
1 changed files with 1 additions and 1 deletions

2
ezdown
View File

@ -393,7 +393,7 @@ function main() {
BASE="/etc/kubeasz"
# check if use bash shell
readlink /proc/$$/exe|grep -q "dash" && { logger error "you should use bash shell, not sh"; exit 1; }
readlink /proc/$$/exe|grep -q "bash" || { logger error "you should use bash shell, not sh"; exit 1; }
# check if use with root
[[ "$EUID" -ne 0 ]] && { logger error "you should run this script as root"; exit 1; }