We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dddd87 commit 8093a5aCopy full SHA for 8093a5a
scripts/create.sh
@@ -67,7 +67,9 @@ function main() {
67
if [ -f "${IMAGES_JSON}" ]; then
68
# we need to copy images.json for inclusion in the build image
69
defaultStackPath=$(jq -r '.images[] | select(.name == "default") | .config_dir' "${IMAGES_JSON}")
70
- cp $IMAGES_JSON $ROOT_DIR/$defaultStackPath/images.json
+ if [ -n "$defaultStackPath" ]; then
71
+ cp $IMAGES_JSON "${ROOT_DIR}/${defaultStackPath}/images.json"
72
+ fi
73
fi
74
75
# if stack or build argument is provided but not both, then throw an error
0 commit comments