From 6ae9ab03717090c123bc17a600569eb1947a5f22 Mon Sep 17 00:00:00 2001 From: Reuben D'Netto Date: Fri, 19 Jun 2015 16:12:39 +1000 Subject: [PATCH] Made toolchain scripts POSIX-compliant Tested using dash. See #19 --- fake-toolchain/Unix/cc | 4 ++-- fake-toolchain/Unix/cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fake-toolchain/Unix/cc b/fake-toolchain/Unix/cc index 556f226f98..03e796105b 100755 --- a/fake-toolchain/Unix/cc +++ b/fake-toolchain/Unix/cc @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/sh 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 2b302dbdc5..3db8744404 100755 --- a/fake-toolchain/Unix/cxx +++ b/fake-toolchain/Unix/cxx @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/sh 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)"