Update ezctl

pull/1186/head
Eamon 2022-09-08 09:36:05 +08:00 committed by jmgao
parent 580f41308b
commit 64ecb7c9c4
1 changed files with 1 additions and 1 deletions

2
ezctl
View File

@ -552,7 +552,7 @@ function main() {
cd "$BASE" cd "$BASE"
# check bash shell # check bash shell
readlink /proc/$$/exe|grep -q "dash" && { logger error "you should use bash shell only"; exit 1; } readlink /proc/$$/exe|grep -q "bash" || { logger error "you should use bash shell only"; exit 1; }
# check 'ansible' executable # check 'ansible' executable
which ansible > /dev/null 2>&1 || { logger error "need 'ansible', try: 'pip install ansible'"; usage; exit 1; } which ansible > /dev/null 2>&1 || { logger error "need 'ansible', try: 'pip install ansible'"; usage; exit 1; }