Compare commits

2 Commits

Author SHA1 Message Date
449929d7a7 add LC_ALL to avoid localized messages 2022-06-24 14:12:32 +02:00
228eba1133 suppression log 2022-06-24 02:06:14 +02:00

View File

@@ -147,6 +147,7 @@
# command line # command line
SCRIPT="$0" SCRIPT="$0"
CMD="${0##*/}" CMD="${0##*/}"
export LC_ALL=C
# valid filesystems # valid filesystems
# shellcheck disable=2034 # shellcheck disable=2034
@@ -632,7 +633,6 @@ for ((i=0; i<${#LABELS[@]}; ++i)); do
status=0 status=0
# shellcheck disable=SC2086 # shellcheck disable=SC2086
echorun_maybe rsync "${RSYNCOPTS[@]}" "$SRCPART" "$DSTPART" || status=$? echorun_maybe rsync "${RSYNCOPTS[@]}" "$SRCPART" "$DSTPART" || status=$?
log -s "rsync status=%s\n" "$status"
if (( status != 24 && status != 0 )); then if (( status != 24 && status != 0 )); then
log -s "rsync error %d" "$status" log -s "rsync error %d" "$status"
exit 1 exit 1