Have final `cp` use `-a` flag over `-r` flag. (#12)

* Try with cp archive.

* With rm instead.

* Avoid rm completely.

* Pass.

* Favor cp -a.
pull/13/head
Joshua Potter 2023-12-13 09:14:27 -07:00 committed by GitHub
parent 635395b9cc
commit 51eedbe6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 7 deletions

View File

@ -52,4 +52,4 @@ chmod 755 "$BUILD"/.githooks/pre-commit
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/* "$OUT"
cp -a "$BUILD"/* "$OUT"

View File

@ -85,4 +85,4 @@ sed -i "s/<APP>/$APP/g" "$BUILD/flake.nix"
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/* "$OUT"
cp -a "$BUILD"/* "$OUT"

View File

@ -70,4 +70,4 @@ nix develop "$BUILD" --command bash -c \
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/!(bs.nodejs) "$OUT"
cp -a "$BUILD"/!(bs.nodejs) "$OUT"

View File

@ -73,7 +73,8 @@ chmod 644 "$BUILD"/README.md
# Include additional build files for our assets. Group into subdirectory so
# the `chmod` command can take advantage of globbing.
cp -r assets "$BUILD"/bs.assets
mkdir -p "$BUILD"/bs.assets
cp assets/* "$BUILD"/bs.assets
chmod 644 "$BUILD"/bs.assets/*
mv "$BUILD"/bs.assets/* "$BUILD"/assets
rmdir "$BUILD"/bs.assets
@ -128,4 +129,4 @@ EOF
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/* "$OUT"
cp -a "$BUILD"/* "$OUT"

View File

@ -52,4 +52,4 @@ chmod 755 "$BUILD"/.githooks/pre-commit
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/* "$OUT"
cp -a "$BUILD"/* "$OUT"

View File

@ -53,4 +53,4 @@ find "$BUILD" -type f -execdir chmod 644 {} +
# ============================================================
# Success! Copy contents to target directory.
cp -r "$BUILD"/* "$OUT"
cp -a "$BUILD"/* "$OUT"