diff --git a/fake-toolchain/Unix/cc b/fake-toolchain/Unix/cc index 03e796105b..556f226f98 100755 --- a/fake-toolchain/Unix/cc +++ b/fake-toolchain/Unix/cc @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash if [[ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]]; then # Cmake determines compiler properties by compiling a test file, so call clang for this case $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ -elif [ "$@" = "-v" ]; then +elif [[ "$@" == "-v" ]]; then # Needed to enable clang-specific options for certain build systems (e.g. linux) echo "clang version 3.5.0 (fake toolchain)" diff --git a/fake-toolchain/Unix/cxx b/fake-toolchain/Unix/cxx index 3db8744404..2b302dbdc5 100755 --- a/fake-toolchain/Unix/cxx +++ b/fake-toolchain/Unix/cxx @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash if [[ ! -z "$YCM_CONFIG_GEN_CXX_PASSTHROUGH" ]]; then # Cmake determines compiler properties by compiling a test file, so call clang for this case $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ -elif [ "$@" = "-v" ]; then +elif [[ "$@" == "-v" ]]; then # Needed to enable clang-specific options for certain build systems (e.g. linux) echo "clang version 3.5.0 (fake toolchain)"