Skip to content

Commit 1b0ef83

Browse files
yedayakscop
authored andcommitted
refactor(rsync): prefix sed with command
1 parent f565bf9 commit 1b0ef83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completions/rsync

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ _comp_cmd_rsync()
102102
fi
103103
done
104104
if [[ $shell == ssh ]]; then
105-
local rsync_version=$("$1" --version 2>/dev/null | sed -n '1s/.*rsync *version \([0-9.]*\).*/\1/p')
105+
local rsync_version=$("$1" --version 2>/dev/null |
106+
command sed -n '1s/.*rsync *version \([0-9.]*\).*/\1/p')
106107
_comp_cmd_rsync__vercomp "$rsync_version" "3.2.4"
107108
if (($? == 2)); then
108109
_comp_compgen -x scp remote_files

0 commit comments

Comments
 (0)