1
0
forked from 0ad/0ad
0ad/build/resources/0ad.sh
Ralph Sennhauser abdda50892 Format shell scripts using shfmt
This updates shell scripts to use a consistent style that can be enforced
via pre-commit hook.

As for choosing tabs over spaces, some arguments are:

- tabs can help people with visual impairment
- tabs allow for indenting heredocs in bash
- tabs are the default for the tool shfmt

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-08-26 09:03:00 +02:00

10 lines
172 B
Bash
Executable File

#!/bin/sh
pyrogenesis=$(which pyrogenesis 2>/dev/null)
if [ -x "$pyrogenesis" ]; then
"$pyrogenesis" "$@"
else
echo "Error: pyrogenesis not found in ($PATH)"
exit 1
fi