Skip to content

Commit

Permalink
deploy.tpl: Fix shell bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hovind authored and oharboe committed Oct 22, 2024
1 parent cf93380 commit 63b1b19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ main() {
cp --force --no-preserve=all "$config" "$dst/config.mk"

for rename in $renames; do
IFS=':' read -r src dst <<EOF
IFS=':' read -r from to <<EOF
$rename
EOF
mkdir --parents $(dirname "$dst")
cp --force "$src" "$dst"
mkdir --parents "$dst"/"$(dirname "$to")"
cp --force --dereference --no-preserve=all "$from" "$dst"/"$to"
done

if [[ -n "$@" ]]; then
"$dst/make" $@
if ! [ -z "$@" ]; then
"$dst/make" "$@"
fi

exit $?
Expand Down

0 comments on commit 63b1b19

Please sign in to comment.