From 26f9fb156bd7eb267d61539be8ba737a5445e4a3 Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Fri, 21 Oct 2022 11:16:34 +0300 Subject: [PATCH 01/10] Remove bash dependency from init-compiler Also fixes shell check warnings in `System.Globalization.Native/local_build.sh`. --- eng/common/native/init-compiler.sh | 58 +++++++++---------- .../local_build.sh | 27 +++++---- 2 files changed, 46 insertions(+), 39 deletions(-) diff --git a/eng/common/native/init-compiler.sh b/eng/common/native/init-compiler.sh index 41a26d802a93f..071ae7ef3cdf8 100644 --- 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