From d6ebda4d3fd84e150c2c6e65c04a3eb05e85cb2d Mon Sep 17 00:00:00 2001 From: Chris Green Date: Thu, 16 May 2024 14:42:16 -0500 Subject: [PATCH] Fix for argument corruption in `make_packages_yaml` --- bin/make_packages_yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/make_packages_yaml b/bin/make_packages_yaml index b9725a7..f76a7c7 100755 --- a/bin/make_packages_yaml +++ b/bin/make_packages_yaml @@ -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 @@ -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