0ad/source/tools/templatessorter/templatessorter.sh
Ralph Sennhauser 6f5ac7c4ae Fix issues pointed out by shellcheck
Some are real bugs, some are bashisms, but most is zealous quoting of
variables.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-08-28 18:23:18 +02:00

10 lines
267 B
Bash
Executable file

#!/bin/bash
# check arguments count
if [ $# -ne 1 ]; then
echo usage: "$0" directory
exit 1
fi
# assign arguments to variables with readable names
input_directory=$1
# perform work
find "$input_directory" -name \*.xml -exec xsltproc -o {} templatessorter.xsl {} \;