Skip to content

Commit 926678c

Browse files
committed
Old bash compat
1 parent c1a13b3 commit 926678c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/run_nix_shell.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ for ((i=0; i < ${#INPUTS[@]}; i+=2)); do
113113
value="${INPUTS[i+1]}"
114114

115115
if [[ -n "$value" ]]; then
116-
input="INPUT_${name^^}" # prefix with INPUT_ and uppercase
116+
input="INPUT_$(echo "${name}" | tr '[:lower:]' '[:upper:]')" # prefix with INPUT_ and uppercase
117117
input="${input// /_}" # replace spaces with underscores
118118
variables+=( "${input}=${value}" )
119119
fi

0 commit comments

Comments
 (0)