Skip to content

Commit

Permalink
Fix inconsistent tabs/spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Jul 19, 2024
1 parent 2156314 commit 18e2e53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ trap "rm -rf -- '$DL_SCRIPT_DIR'" EXIT
mkdir -p "${PWD}"/.cache/downloads

for STAGE in scripts.d/*.sh scripts.d/*/*.sh; do
STAGENAME="$(basename "$STAGE" | sed 's/.sh$//')"
STAGENAME="$(basename "$STAGE" | sed 's/.sh$//')"

cat <<-EOF >"${DL_SCRIPT_DIR}/${STAGENAME}.sh"
set -xe -o pipefail
shopt -s dotglob
source /dl_functions.sh
source /dl_functions.sh
source "/$STAGE"
STG="\$(ffbuild_dockerdl)"
Expand All @@ -49,7 +49,7 @@ for STAGE in scripts.d/*.sh scripts.d/*/*.sh; do
fi
WORKDIR="\$(mktemp -d)"
trap "rm -rf -- '\$WORKDIR'" EXIT
trap "rm -rf -- '\$WORKDIR'" EXIT
cd "\$WORKDIR"
eval "\$STG"
Expand All @@ -62,4 +62,4 @@ for STAGE in scripts.d/*.sh scripts.d/*/*.sh; do
done

docker run -i $TTY_ARG --rm "${UIDARGS[@]}" -v "${DL_SCRIPT_DIR}":/stages -v "${PWD}/.cache/downloads":/dldir -v "${PWD}/scripts.d":/scripts.d -v "${PWD}/util/dl_functions.sh":/dl_functions.sh "${REGISTRY}/${REPO}/base:latest" \
bash -c 'set -xe && for STAGE in /stages/*.sh; do bash $STAGE; done'
bash -c 'set -xe && for STAGE in /stages/*.sh; do bash $STAGE; done'

0 comments on commit 18e2e53

Please sign in to comment.