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
parent
635395b9cc
commit
51eedbe6b0
|
@ -52,4 +52,4 @@ chmod 755 "$BUILD"/.githooks/pre-commit
|
|||
# ============================================================
|
||||
|
||||
# Success! Copy contents to target directory.
|
||||
cp -r "$BUILD"/* "$OUT"
|
||||
cp -a "$BUILD"/* "$OUT"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -52,4 +52,4 @@ chmod 755 "$BUILD"/.githooks/pre-commit
|
|||
# ============================================================
|
||||
|
||||
# Success! Copy contents to target directory.
|
||||
cp -r "$BUILD"/* "$OUT"
|
||||
cp -a "$BUILD"/* "$OUT"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue