From 1ecee408e67d8e962c0520528a7782eb1caf193f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 17 Jun 2018 11:31:56 -0300 Subject: Do not test for image at shell action --- kvmx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvmx') 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 -- cgit v1.2.3