aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-17 11:31:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-17 11:31:56 -0300
commit1ecee408e67d8e962c0520528a7782eb1caf193f (patch)
treea93ca2f478933535e52ec2feb992f8c11b027645
parent9981d4af200e461ba5bdc5515a0baf869d385d52 (diff)
downloadkvmx-1ecee408e67d8e962c0520528a7782eb1caf193f.tar.gz
kvmx-1ecee408e67d8e962c0520528a7782eb1caf193f.tar.bz2
Do not test for image at shell action
-rwxr-xr-xkvmx6
1 files changed, 3 insertions, 3 deletions
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