aboutsummaryrefslogtreecommitdiff
path: root/bin/vm
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-27 15:34:15 -0300
committerEuAndreh <eu@euandre.org>2023-03-27 15:34:15 -0300
commit8f132d40209244dcd149c1928b89f73fe1d37a14 (patch)
treebd0a6ba9851ca53adbd637f65601b8cb0d25424a /bin/vm
parentRevert "etc/nix/configuration.nix: Remove and disable CUPS configuration" (diff)
downloaddotfiles-8f132d40209244dcd149c1928b89f73fe1d37a14.tar.gz
dotfiles-8f132d40209244dcd149c1928b89f73fe1d37a14.tar.xz
bin/vm: Allow ".snapshot" file to exist
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