]> git.cameronkatri.com Git - cc-run.git/commitdiff
Fix some quotes
authorCameron Katri <me@cameronkatri.com>
Fri, 8 Apr 2022 22:53:31 +0000 (18:53 -0400)
committerCameron Katri <me@cameronkatri.com>
Fri, 8 Apr 2022 22:53:31 +0000 (18:53 -0400)
cc-run.sh

index 6d58170718c66e21018b8928102d2abfef4400f2..7a59ed697ef0d0ff7f88f2165ed4635818e99a0d 100755 (executable)
--- a/cc-run.sh
+++ b/cc-run.sh
@@ -5,7 +5,7 @@ src=""
 args=""
 exeargs=""
 
-if ! command -v $compiler >/dev/null 2>&1; then
+if ! command -v "$compiler" >/dev/null 2>&1; then
        echo "$(basename "$0"): error: can't find compiler: '$compiler'" >&2
        exit 1
 fi
@@ -20,7 +20,7 @@ for arg in "$@"; do
        fi
 done
 
-case $compiler in
+case "$compiler" in
        cc|gcc|gcc-*|clang|clang-*)
                args="$args $CPPFLAGS $CFLAGS $LDFLAGS";;
        c++|g++|g++-*|clang++|clang++-*)