Merge branch 'master' of git.uninsane.org:colin/nix-files

This commit is contained in:
colin 2022-12-14 12:28:58 +00:00
commit 7674735d42
2 changed files with 10 additions and 2 deletions

View File

@ -3,4 +3,5 @@ https://github.com/nixos/nixpkgs/pulls?q=
https://fed.uninsane.org
https://jackett.uninsane.org
https://bt.uninsane.org
https://sci-hub.se
https://news.ycombinator.com

View File

@ -1,3 +1,10 @@
#!/usr/bin/env sh
# copy some remote file(s) to the working directory, with sane defaults
rsync -arv --progress --append-verify "$@" .
# rsync, with sane defaults
# + verbosity
# + default to cwd as destination if none is provided
dest=
if (( $# <= 1 )); then
# rsync to the current directory by default
dest='.'
fi
rsync -arv --progress --append-verify "$@" $dest