From 7d751bb8945948c8408ca16eb421b26a905c48c9 Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Fri, 21 Oct 2022 11:23:50 +0300 Subject: [PATCH 1/3] Remove bash dependency from init-compiler --- eng/common/native/init-compiler.sh | 58 +++++++++++++++--------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/eng/common/native/init-compiler.sh b/eng/common/native/init-compiler.sh index 41a26d802a9..071ae7ef3cd 100755 --- a/eng/common/native/init-compiler.sh +++ b/eng/common/native/init-compiler.sh @@ -1,10 +1,10 @@ -#!/usr/bin/env bash +#!/bin/sh # # This file detects the C/C++ compiler and exports it to the CC/CXX environment variables # # NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here! -if [[ "$#" -lt 3 ]]; then +if [ "$#" -lt 3 ]; then echo "Usage..." echo "init-compiler.sh