From: Silvio Rhatto Date: Sun, 17 Jun 2018 14:31:56 +0000 (-0300) Subject: Do not test for image at shell action X-Git-Tag: 0.1.0~204 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1ecee408e67d8e962c0520528a7782eb1caf193f;p=kvmx.git Do not test for image at shell action --- diff --git a/kvmx b/kvmx index b682f18..1c8d875 100755 --- a/kvmx +++ b/kvmx @@ -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