summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrepopush.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/repopush.sh b/repopush.sh
index 880587e..ad1d8b9 100755
--- a/repopush.sh
+++ b/repopush.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (c) 2020, 2021 Peter Pentchev <roam@ringlet.net>
+# Copyright (c) 2020 - 2023 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -99,8 +99,7 @@ rsync_step()
{
local n="$1" ntotal="$2" desc="$3" path="$4" delete="$5"
debug "- $n/$ntotal: $desc"
- # shellcheck disable=SC2086
- rsync $noop $v -az $delete -- "$locpath$path/" "$remote$path/"
+ rsync ${noop:+-n} ${v:+-v} -az ${delete:+--delete} -- "$locpath$path/" "$remote$path/"
}
sync_debrepo()