More noita-helper improvements
This commit is contained in:
parent
b9f0daba7f
commit
5b54797e66
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user