]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Do not test for image at shell action
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 17 Jun 2018 14:31:56 +0000 (11:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 17 Jun 2018 14:31:56 +0000 (11:31 -0300)
kvmx

diff --git a/kvmx b/kvmx
index b682f183a4b4a0020032ac9db5cb00ad29bcd2b0..1c8d8757681753b68bf5025d7275f8cee67ebbae 100755 (executable)
--- 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