Skip to content

Commit

Permalink
Explicit cp target flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Aug 22, 2024
1 parent 3f3d871 commit d25fc88
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/git-e2ee-rclone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Create a new empty **bare Git repo** locally, and enable and run the **`post-upd

```bash
git init --bare repo01.git
(cd repo01.git/hooks && cp post-update{.sample,} && ./post-update)
(cd repo01.git/hooks && cp -T post-update{.sample,} && ./post-update)
```

Now upload your new blank Git bare repo onto the `mycrypt` remote:
Expand Down
2 changes: 1 addition & 1 deletion examples/mdwiki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ These are the commands I use to set it up in a local folder:
curl -fLO 'https://github.com/Dynalon/mdwiki/releases/download/0.6.2/mdwiki-0.6.2.zip'
echo e06f5d99c5cf3a85abdd522a6f2e9a1a9cb669468b29ee970caff3020ba9190a mdwiki-0.6.2.zip | sha256sum -c
unzip mdwiki-0.6.2.zip
cp mdwiki-0.6.2/mdwiki.html index.html
cp -T mdwiki-0.6.2/mdwiki.html index.html
sed -i 's/index\.md/README.md/g' index.html
```

Expand Down
2 changes: 1 addition & 1 deletion scripts/cicd/mkdocs-ghpages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ echo "::group::$0: Build"
find "$real_src" -mindepth 1 -maxdepth 1 "${args_excludes[@]}" |
while read -r i; do
echo "Copying $i into $real_dst"
cp -R "$i" "$real_dst"
cp -Rt"$real_dst" "$i"
done
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/cicd/rust-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ echo "::group::$0: Artifact"
dst=cicd-artifact/$file_basename

echo "Copying $src to $dst"
cp "$src" "$dst"
cp -T "$src" "$dst"
echo "- 📦 Artifact file: \`$file_basename\`" |
tee -a "$CICD_SUMMARY"
done
Expand Down
2 changes: 1 addition & 1 deletion snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Some pieces of code I find useful for some reason.
- `rclone lsf -R --format=pst myremote: | LC_ALL=C sort`
- `tree -paugh`
- `find | grep -i pattern`
- `cp -Rv /media/sourcedisk/folder /media/destdisk`
- `cp -Rvt/media/destdisk /media/sourcedisk/folder`
- `ss -tulpn`
- `df -h`
- `du -sh`
Expand Down

0 comments on commit d25fc88

Please sign in to comment.