From 8f132d40209244dcd149c1928b89f73fe1d37a14 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 27 Mar 2023 15:34:15 -0300 Subject: bin/vm: Allow ".snapshot" file to exist --- bin/vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/vm') 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 -- cgit v1.2.3