local-bin/bitbreaker/dwarf-fortress
2021-04-06 06:57:19 +03:00

19 lines
333 B
Bash
Executable File

#!/bin/sh
dwarfdir="$HOME/df_linux"
# Remove libstdc++.so.6 since it's too old for bitbreaker
if [[ -f "$dwarfdir/libs/libstdc++.so.6" ]]; then
rm "$dwarfdir/libs/libstdc++.so.6"
echo "Removed bundled libstdc++.so.6"
fi
cd $dwarfdir
if [[ -f "dfhack" ]]; then
echo "DFHack installed, using dfhack"
./dfhack
else
./dfhack
fi