summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1f02269)
The local vars path is incorrect in the if-statement but
correct in the declaration below it. Update to match.
Change-Id: I1e8ec19adf842668fb46e54aaf8beebfcef9c34d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
mkdir -p "$PACKER_LOGS_DIR"
export PATH="${WORKSPACE}/bin:$PATH"
mkdir -p "$PACKER_LOGS_DIR"
export PATH="${WORKSPACE}/bin:$PATH"
# Prioritize the project's own version of vars if available
platform_file="common-packer/vars/$PACKER_PLATFORM.json"
# Prioritize the project's own version of vars if available
platform_file="common-packer/vars/$PACKER_PLATFORM.json"
-if [ -f "$PACKER_PLATFORM" ]; then
+if [ -f "vars/$PACKER_PLATFORM.json" ]; then
platform_file="vars/$PACKER_PLATFORM.json"
fi
platform_file="vars/$PACKER_PLATFORM.json"
fi
export PACKER_LOG="yes"
export PACKER_LOG_PATH="$PACKER_BUILD_LOG"
packer.io build -color=false \
export PACKER_LOG="yes"
export PACKER_LOG_PATH="$PACKER_BUILD_LOG"
packer.io build -color=false \