k3s: format with nixfmt-rfc-style
[NixPkgs.git] / pkgs / games / abuse / abuse.sh
blobde837d27181f48d82cf47d7caca1a31e1ec9646e
1 #! @shell@
3 if grep datadir ~/.abuse/abuserc &>/dev/null; then
4 if [ ! -d "$(grep datadir ~/.abuse/abuserc | cut -d= -f2)" ]; then
5 echo "Warning: ~/.abuse/abuserc references a datadir which is not existent." >&2
6 echo "Try removing ~/.abuse/abuserc, else abuse will most likely not run." >&2
7 echo >&2
8 # This can happen if the build hash of abuse changes and the older version
9 # is garbage-collected. The correct path of the datadir is compiled into
10 # the binary, but unfortunately abuse writes out the path into abuserc on
11 # first start. This entry may later become stale.
15 # The timidity bundled into SDL_mixer looks in . and in several global places
16 # like /etc for its configuration file.
17 cd @out@/etc
18 exec @out@/bin/.abuse-bin "$@"