diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-17 11:31:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-17 11:31:56 -0300 |
commit | 1ecee408e67d8e962c0520528a7782eb1caf193f (patch) | |
tree | a93ca2f478933535e52ec2feb992f8c11b027645 | |
parent | 9981d4af200e461ba5bdc5515a0baf869d385d52 (diff) | |
download | kvmx-1ecee408e67d8e962c0520528a7782eb1caf193f.tar.gz kvmx-1ecee408e67d8e962c0520528a7782eb1caf193f.tar.bz2 |
Do not test for image at shell action
-rwxr-xr-x | kvmx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -200,9 +200,9 @@ function __kvmx_initialize { mkdir -p $STATE_DIR $LOG_DIR - if [ ! -e "$image" ] && [ "$ACTION" != "up" ] && [ "$ACTION" != "provision" ] && [ "$ACTION" != "purge" ] \ - && [ "$ACTION" != "destroy" ] && [ "$ACTION" != "install" ] && [ "$ACTION" != "config" ] \ - && [ "$ACTION" != "config_unset" ] && [ "$ACTION" != "create" ]; then + if [ ! -e "$image" ] && [ "$ACTION" != "up" ] && [ "$ACTION" != "provision" ] && [ "$ACTION" != "purge" ] \ + && [ "$ACTION" != "destroy" ] && [ "$ACTION" != "install" ] && [ "$ACTION" != "config" ] \ + && [ "$ACTION" != "config_unset" ] && [ "$ACTION" != "create" ] && [ "$ACTION" != "shell" ]; then echo "$BASENAME: file not found: $image" exit 1 fi |