[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
This commit is contained in:
Liu Shilong 2024-01-15 14:59:21 +08:00 committed by GitHub
parent 8c1653605b
commit 90485126e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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