From 6926171e928f8ae6044c3646677e48401c8b13c7 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Mon, 15 Jan 2024 14:59:21 +0800 Subject: [PATCH] [build] Fix a bash script some times called by sh issue. (#17761) Why I did it Fix a bug that sometimes the script runs in sh not bash. Work item tracking Microsoft ADO (number only): 26297955 How I did it --- scripts/docker_version_control.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/docker_version_control.sh b/scripts/docker_version_control.sh index e94370d0e2..7af5173dec 100755 --- a/scripts/docker_version_control.sh +++ b/scripts/docker_version_control.sh @@ -1,7 +1,8 @@ +#!/bin/bash + # This script is for reproducible build. # Reproducible build for docker enabled: Before build docker image, this script will change image:tag to image:sha256 in DOCKERFILE. # And record image sha256 to a target file. -#!/bin/bash IMAGENAME=$1 DOCKERFILE=$2