diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-04-07 16:56:25 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-04-09 01:02:21 +0200 |
commit | 0ac4e5a7f877ae451a6246c1f694e36d8a3c915e (patch) | |
tree | f71680cfd9fca9073661a2abd30b44292b7672a6 /util | |
parent | 7bd886b503880a6f47a743446d6025812c3ab64e (diff) |
util/crossgcc/buildgcc: quote parameters that may have spaces
On certain versions of /bin/sh assigning variables with spaces
unquoted leads to failures. Therefore, quote variables that
are known to be passed in that have spaces.
Change-Id: I007c56c3bfb8183bb4b16cf0591f6aa508fd105d
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/14280
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util')
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 4641ae90ba..e2a30d8981 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -191,7 +191,7 @@ searchtool() # Run a compile check of the specified library option to see if it's installed check_for_library() { local LIBRARY_FLAGS=$1 - local LIBRARY_PACKAGES=$2 + local LIBRARY_PACKAGES="$2" local LIBTEST_FILE=.libtest echo "int main(int argc, char **argv) { (void) argc; (void) argv; return 0; }" > "${LIBTEST_FILE}.c" |