Skip to content

Commit

Permalink
Merge pull request #3276 from citrus-it/arch
Browse files Browse the repository at this point in the history
Fix alternate arch build script switch
  • Loading branch information
hadfl committed Jul 5, 2023
2 parents bba2d2c + 757b820 commit ac10666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
# for different ARCHs. If we see `-a` in the options string, we look for such
# a helper and invoke that instead.

while getopts ":a:" opt; do
while getopts ":f:a:d:r:" opt; do
if [ "$opt" = a -a -x build-arch-$OPTARG.sh ]; then
echo "--- Switching to arch-specific build script"
./build-arch-$OPTARG.sh "$@"
exit 0
fi
done
OPTIND=1

# Vim hints
# vim:ts=4:sw=4:et:fdm=marker

0 comments on commit ac10666

Please sign in to comment.