diff --git a/bitbreaker/dwarf-fortress b/bitbreaker/dwarf-fortress index b2d739f..c0c1ae8 100755 --- a/bitbreaker/dwarf-fortress +++ b/bitbreaker/dwarf-fortress @@ -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