Updating df script for better locations

This commit is contained in:
Siina Mashek 2022-03-13 06:18:57 +02:00
parent 42c3365a1b
commit 0163632bd4

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
dwarfdir="$HOME/Games/df_linux" dwarfdir="/games/dwarf-fortress"
timestamp=$(date +"%Y%m%d-%H.%M.%S") timestamp=$(date +"%Y%m%d-%H.%M.%S")
# Remove libstdc++.so.6 since it's too old for bitbreaker # Remove libstdc++.so.6 since it's too old for bitbreaker
@ -10,7 +10,9 @@ if [[ -f "$dwarfdir/libs/libstdc++.so.6" ]]; then
fi fi
# Clear the gamelog for stream # Clear the gamelog for stream
if [[ -f "$dwarfdir/gamelog.txt" ]]; then
mv "$dwarfdir/gamelog.txt" "$dwarfdir/logs/gamelog-$timestamp.txt" mv "$dwarfdir/gamelog.txt" "$dwarfdir/logs/gamelog-$timestamp.txt"
fi
cd $dwarfdir cd $dwarfdir