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