]> Sergey Matveev's repositories - nnn.git/commitdiff
rsynccp: avoid using non-portable flags
authorNRK <nrk@disroot.org>
Tue, 1 Feb 2022 10:29:40 +0000 (16:29 +0600)
committerNRK <nrk@disroot.org>
Tue, 1 Feb 2022 10:29:40 +0000 (16:29 +0600)
Closes: https://github.com/jarun/nnn/issues/1299
plugins/rsynccp

index 5cfa66fe6e5614253d1d8c88c97567130ca5b93c..902f9e78563b46fd1e27010b293620bc308c6ede 100755 (executable)
@@ -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