enhance visual of copied file list - drist - a remote deployment tool
(HTM) git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7cf4346ecfc60772ce096dc403276009794209cd
(DIR) parent 89768c14b72f90125d7e6803308458baf094aabc
(HTM) Author: Solene Rapenne <solene@perso.pw>
Date: Thu, 29 Nov 2018 18:30:26 +0100
enhance visual of copied file list
Diffstat:
M drist | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/drist b/drist
@@ -50,7 +50,7 @@ copy_files() {
if [ -f "$LIST" ]
then
printf 'Copying files from folder "%s":\n' "$1"
- find "${1}"/ -type f | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ /'
+ find "${1}"/ -type f | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ \//'
if [ "$SIMULATE" -ne 1 ]
then
rsync --rsync-path="${EXEC} rsync" -lD --files-from="${LIST}" "${1}/" "${2}":/