File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- PACKCHECK_DIR=$( dirname $0 )
3+ PACKCHECK_DIR=$( dirname " $0 " )
44echo " Running ${PACKCHECK_DIR} /packcheck.sh with clean environment and CHECK_ENV on..."
55echo " No environment variables are honored, you have to specifiy ALL the"
66echo " parameters explicitly on the command line, including PATH."
77echo
88
9- /usr/bin/env -i CHECK_ENV=y $( dirname $0 ) /packcheck.sh $*
9+ PACKCHECK_CLI_OPTS_ARR=(" $@ " )
10+ PACKCHECK_CLI_OPTS=" "
11+
12+ for i in " ${PACKCHECK_CLI_OPTS_ARR[@]} "
13+ do
14+ case $i in
15+ * =* )
16+ key=${1%% =* }
17+ val=${1#* =}
18+ PACKCHECK_CLI_OPTS=" $PACKCHECK_CLI_OPTS $key =\" $val \" "
19+ shift
20+ ;;
21+ * )
22+ PACKCHECK_CLI_OPTS=" $PACKCHECK_CLI_OPTS $i "
23+ shift
24+ ;;
25+ esac
26+ done
27+
28+ eval " /usr/bin/env -i CHECK_ENV=y $PACKCHECK_DIR /packcheck.sh $PACKCHECK_CLI_OPTS "
You can’t perform that action at this time.
0 commit comments