Updating df script for better locations
This commit is contained in:
parent
42c3365a1b
commit
0163632bd4
|
@ -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
|
||||||
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
|
cd $dwarfdir
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue