aboutsummaryrefslogtreecommitdiff
path: root/bin/vm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vm')
-rwxr-xr-xbin/vm2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/vm b/bin/vm
index e1bb58f..094c4c6 100755
--- a/bin/vm
+++ b/bin/vm
@@ -256,7 +256,7 @@ case "$ACTION" in
STATUS=down
fi
- SNAPSHOT="$(cat "$RUNDIR/$NAME.snapshot")"
+ SNAPSHOT="$(cat "$RUNDIR/$NAME.snapshot" 2>/dev/null ||:)"
if [ "$SNAPSHOT" = true ] && [ "$STATUS" = 'up' ]; then
SNAPSHOT='snapshot'
else