1
0
Fork 0
forked from mirror/nnn

rsynccp: avoid using non-portable flags

Closes: https://github.com/jarun/nnn/issues/1299
This commit is contained in:
NRK 2022-02-01 16:29:40 +06:00
parent 2eadf35fa0
commit ffd0468f67

View file

@ -15,10 +15,10 @@ sel=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
# Choose one of these two schemes by commenting
# more verbose
xargs -0 -a "$sel" -I % rsync -ah --progress % "$PWD"
xargs -0 -I % rsync -ah --progress % "$PWD" < "$sel"
# less verbose
# xargs -0 -a "$sel" -I % rsync -ah --info=progress2 % "$PWD"
# xargs -0 -I % rsync -ah --info=progress2 % "$PWD" < "$sel"
# Clear selection
if [ -p "$NNN_PIPE" ]; then