Skip to content

Commit 0494939

Browse files
author
Aaron O'Mullan
committed
Small refactor of buildstack.sh
1 parent c6590cb commit 0494939

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stacks/buildstack.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set -e
88
# Constants
99
###
1010
BASE_REPO="codebox"
11+
BASE_STACK="base"
1112
SRC_DIR=$(readlink -f ..)
1213
TMP_SRC="/tmp/codebox_src"
1314
STACK_SRC="${SRC_DIR}/stacks/base/src"
@@ -87,7 +88,7 @@ REPO="${BASE_REPO}.${STACK}"
8788
TAG=$VERSION
8889

8990
# We need codebox's source for the base image
90-
if [[ ${STACK} == "base" ]]; then
91+
if [[ ${STACK} == ${BASE_STACK} ]]; then
9192
clean_src
9293
mv ${TMP_SRC} ${STACK_SRC}
9394
fi;
@@ -104,7 +105,7 @@ if [ ! $BUILD_ERROR == 0 ]; then
104105
fi;
105106

106107
# Cleanup tmp src folder
107-
if [[ ${STACK} == "base" ]]; then
108+
if [[ ${STACK} == ${BASE_STACK} ]]; then
108109
rm -rf "${TMP_SRC}"
109110
rm -rf "${STACK_SRC}"
110111
fi;

0 commit comments

Comments
 (0)