[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 mssonicbld
parent b84e3f9e8a
commit 015ce751a4

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