mirror of https://github.com/easzlab/kubeasz.git
Update ezctl
parent
580f41308b
commit
64ecb7c9c4
2
ezctl
2
ezctl
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue