Skip to content

Commit 13623a6

Browse files
committed
Change enbsubst to substitute for new COMMIT_SHA var
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 6708642 commit 13623a6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ VOLUME_MOUNTS=-v "$(CURDIR)":/v
66
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117)
77
SHELLCHECK=docker run --rm $(VOLUME_MOUNTS) -w /v koalaman/shellcheck $(SHELLCHECK_EXCLUSIONS)
88

9-
ENVSUBST_VARS=SCRIPT_COMMIT_SHA
9+
ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA
1010

1111
.PHONY: build
1212
build: build/install.sh
1313

1414
build/install.sh: install.sh
1515
mkdir -p $(@D)
16-
SCRIPT_COMMIT_SHA='$(shell git rev-parse HEAD)' envsubst '$(addprefix $$,$(ENVSUBST_VARS))' < $< > $@
16+
LOAD_SCRIPT_COMMIT_SHA='$(shell git rev-parse HEAD)' envsubst '$(addprefix $$,$(ENVSUBST_VARS))' < $< > $@
1717

1818
.PHONY: shellcheck
1919
shellcheck: build/install.sh

install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ set -e
1616
#
1717
# Git commit from https://github.com/docker/docker-install when
1818
# the script was uploaded (Should only be modified by upload job):
19-
20-
# shellcheck disable=SC2140
21-
SCRIPT_COMMIT_SHA="${SCRIPT_COMMIT_SHA}"
19+
SCRIPT_COMMIT_SHA="${LOAD_SCRIPT_COMMIT_SHA}"
2220

2321

2422
# The channel to install from:

0 commit comments

Comments
 (0)