More noita-helper improvements
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m49s
Periodic flake update / flake-update (push) Successful in 2m39s

This commit is contained in:
Torjus Håkestad 2025-05-05 22:52:40 +02:00
parent b9f0daba7f
commit 5b54797e66
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4

View File

@ -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