This commit is contained in:
Romain Bazile 2020-07-17 14:38:43 +00:00 committed by GitHub
commit 6a5d9702ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -41,7 +41,7 @@ if test -z "${CONFIG_FILE}"; then
exit 1 exit 1
else else
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source ${CONFIG_FILE} source "${CONFIG_FILE}"
fi fi
CONTAINER_NAME=${CONTAINER_NAME:-pigen_work} CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}

View File

@ -229,7 +229,10 @@ fi
mkdir -p "${WORK_DIR}" mkdir -p "${WORK_DIR}"
log "Begin ${BASE_DIR}" log "Begin ${BASE_DIR}"
STAGE_LIST=${STAGE_LIST:-${BASE_DIR}/stage*} SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
STAGE_LIST=${STAGE_LIST:-"${BASE_DIR}"/stage*}
for STAGE_DIR in $STAGE_LIST; do for STAGE_DIR in $STAGE_LIST; do
STAGE_DIR=$(realpath "${STAGE_DIR}") STAGE_DIR=$(realpath "${STAGE_DIR}")
@ -261,3 +264,5 @@ if [ -x ${BASE_DIR}/postrun.sh ]; then
fi fi
log "End ${BASE_DIR}" log "End ${BASE_DIR}"
IFS=$SAVEIFS