Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 185f973

Browse files
committed
Fix bash-ism
1 parent 503e9b7 commit 185f973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ PACKAGE_ROOT="github.com/awslabs/aws-lambda-container-image-converter/img2lambda
1919
BUILDTAGS="containers_image_ostree_stub exclude_graphdriver_devicemapper exclude_graphdriver_overlay exclude_graphdriver_btrfs containers_image_openpgp"
2020

2121
VERSION_LDFLAGS=""
22-
if [[ -n "${3}" ]]; then
22+
if [ -n "${3}" ]; then
2323
VERSION_LDFLAGS="-X ${PACKAGE_ROOT}/version.Version=${3}"
2424
fi
2525

26-
if [[ -n "${4}" ]]; then
26+
if [ -n "${4}" ]; then
2727
VERSION_LDFLAGS="$VERSION_LDFLAGS -X ${PACKAGE_ROOT}/version.GitCommitSHA=${4}"
2828
fi
2929

0 commit comments

Comments
 (0)