Skip to content

Commit

Permalink
Add parameter subpath to rsync ls (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-suse authored Jul 4, 2023
1 parent 6b240b1 commit 4f3477a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion product/rs/local/configure_dir.sh.m4
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ path = $dir
auth users = $user
secrets file = __workdir/$id.secrets" >> __workdir/rsyncd.conf

echo "RSYNC_PASSWORD=$password rsync --list-only --port=$port 127.0.0.1::$id" > __workdir/ls_$id
echo "RSYNC_PASSWORD=$password rsync --list-only --port=$port 127.0.0.1::$id\$1" > __workdir/ls_$id
chmod +x __workdir/ls_$id
4 changes: 4 additions & 0 deletions product/rs/t/01-smoke-00.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ touch $rs/dt/file1.dat

$rs/ls_test | grep file1.dat

mkdir $rs/dt/subdir
touch $rs/dt/subdir/file2.dat
$rs/ls_test /subdir/ | grep file2.dat

$rs/stop

rc=0
Expand Down

0 comments on commit 4f3477a

Please sign in to comment.