Skip to content

Commit 53eb87c

Browse files
committed
Replace rsync with find/xargs/mv
Some (container) images don't have `rsync`...
1 parent e4c4206 commit 53eb87c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gh-program-downloader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ move_and_cleanup_selected_file() {
117117
rm "$temp_file"
118118
else
119119
mkdir -p "$destination"
120-
rsync . "$destination"
121-
find . -mindepth 1 -delete
120+
find . -mindepth 1 -maxdepth 1 -print0 |
121+
xargs -0 mv -t "$destination"
122122
fi
123123
}
124124

0 commit comments

Comments
 (0)