From 20729c8676ae577c7228af96c2d10bdd27272afb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 6 Aug 2019 00:47:23 +0100 Subject: [PATCH] Bugfix: Use xargs --null option --- aptosaurus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aptosaurus.sh b/aptosaurus.sh index b01fbae..e36e2b4 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -116,7 +116,7 @@ task_update() { package_count_before="$(find ${dir_repo} -type f -name "*.deb" | wc -l)"; export -f _symlink_deb; cd "${dir_repo}" || exit 2; - find "../${dir_sources}" -type f -name "*.deb" -print0 | xargs -n1 -I{} bash -c '_symlink_deb "{}"'; + find "../${dir_sources}" -type f -name "*.deb" -print0 | xargs --null -n1 -I{} bash -c '_symlink_deb "{}"'; exit_code="$?"; cd - || exit 2; package_count_after="$(find ${dir_repo} -type f -name "*.deb" | wc -l)";