mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Some are real bugs, some are bashisms, but most is zealous quoting of variables. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
10 lines
267 B
Bash
Executable file
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 {} \;
|