Skip to content

Commit

Permalink
lint(ShellCheck): fix SC2163 warning
Browse files Browse the repository at this point in the history
According to ShellCheck's documentation:

export takes a variable name, but ShellCheck has noticed that you give it
an expanded variable instead.  Remove $/${} for that, or use ${var?} to quiet.

Related: https://www.shellcheck.net/wiki/SC2163
Related: #470
  • Loading branch information
lzaoral authored and xdelaruelle committed Sep 2, 2022
1 parent 0877b01 commit 0d6bc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ for arg in "$@"; do
echo_error "Unrecognized option \`$arg'" tryhelp;;
*=*)
echo -e "Export \`$arg' in environment" ;
export "$arg" ;;
export "${arg?}" ;;
*)
# type of system to build the program for (not needed here but useful
# for true autoconf configure script below
Expand Down

0 comments on commit 0d6bc10

Please sign in to comment.