Added run alias and some random bash scripts
This commit is contained in:
13
tld/restore.sh
Executable file
13
tld/restore.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ $# < 1 ]]; then
|
||||
echo "Please provide save name (eg. sandbox2)"
|
||||
exit
|
||||
fi
|
||||
|
||||
ROOT="$HOME/backup_tld"
|
||||
|
||||
latest=$(find $ROOT -mindepth 1 -maxdepth 1 -type d | rev | cut -d '/' -f 1 | rev | sort -nr | head -n 1)
|
||||
|
||||
echo "Restoring save $latest/$1"
|
||||
cp "$ROOT/$latest/$1" "$HOME/.local/share/Hinterland/TheLongDark/Survival/"
|
||||
Reference in New Issue
Block a user