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