From 5b54797e666fc598ba2394db8d971c0f7bc6dcbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 5 May 2025 22:52:40 +0200 Subject: [PATCH] More noita-helper improvements --- home/scripts/noita-helper.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/scripts/noita-helper.sh b/home/scripts/noita-helper.sh index c08886d..cd377da 100644 --- a/home/scripts/noita-helper.sh +++ b/home/scripts/noita-helper.sh @@ -18,7 +18,7 @@ function start { restic restore "latest:$SAVE_DIR" --target "$SAVE_DIR" echo "Ready to play Noita!" - echo "Remember to unmount the tmpfs after playing:" + echo "Remember to run $0 stop when done." while true do @@ -35,7 +35,11 @@ function stop { echo "Backup and unmount done..." } -# Parse command line arguments +if [ "$#" -ne 1 ]; then + echo "Usage: $0 {start|stop}" + exit 1 +fi + if [ "$1" == "start" ]; then start elif [ "$1" == "stop" ]; then