We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
var
1 parent 19ade08 commit 71abb2cCopy full SHA for 71abb2c
1 file changed
pkgs/build-support/setup-hooks/multiple-outputs.sh
@@ -15,8 +15,8 @@ _assignFirst() {
15
local varName="$1"
16
local REMOVE=REMOVE # slightly hacky - we allow REMOVE (i.e. not a variable name)
17
shift
18
- for var in "$@"; do
19
- if [ -n "${!var-}" ]; then eval "${varName}"="${var}"; return; fi
+ for _var in "$@"; do
+ if [ -n "${!_var-}" ]; then eval "${varName}"="${_var}"; return; fi
20
done
21
echo
22
echo "error: _assignFirst: could not find a non-empty variable to assign to ${varName}."
0 commit comments