Skip to content

Commit

Permalink
Fix bug in option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ghfbsd committed Mar 22, 2024
1 parent c0c57df commit dfd3230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dobuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
# --without-x compiles without X-windows support
#
# G. Helffrich/U Bristol 21 Feb. 2013
# last update 26 Mar. 2022
# last update 22 Mar. 2024

locdef=/usr/local verdef=116 tmp=/tmp/tmp$$ dir=/tmp/sacbuild
loc=${1:-${locdef}} ver=${2:-${verdef}}
if [ "${loc}" == '--' ]; then
loc=${locdef}; shift 1
loc=${locdef} ver=${verdef}; shift 1
elif [ "${ver}" == '--' ]; then
ver=${verdef}; shift 2
elif [ "${3}" == '--' ]; then
Expand Down

0 comments on commit dfd3230

Please sign in to comment.