Skip to content

Commit

Permalink
Fix for argument corruption in make_packages_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
greenc-FNAL committed May 17, 2024
1 parent 77479c1 commit d6ebda4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/make_packages_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ usage() {

src=$dir/templates/packagelist
want_cvmfs=false
if x=$(getopt --options "" --longoptions "help,with-externals,with-cvmfs,debug,packagelist:" -- "$@")
if al=$(getopt --options "" --longoptions "help,with-externals,with-cvmfs,debug,packagelist:" -- "$@")
then
eval set : $x
eval set : $al
shift
else
usage
Expand Down Expand Up @@ -48,11 +48,12 @@ x--debug)
set -x
shift
;;
x--packagelist=*)
src=`echo $1 | sed -e 's/--packagelist=//'`
x--packagelist*)
src=$2
shift
shift
;;
x--) shift; break;;
x--) shift;;
x*)
break;;
esac
Expand Down

0 comments on commit d6ebda4

Please sign in to comment.