Don't fail stopProgress if there is no active logSpinner.
This commit is contained in:
parent
66e893fd83
commit
687923da32
@ -699,7 +699,7 @@ log() {
|
||||
;;
|
||||
|
||||
stopProgress)
|
||||
kill -0 "$_logSpinner" 2>/dev/null || return
|
||||
! kill -0 "$_logSpinner" 2>/dev/null && return
|
||||
|
||||
case $exitcode in
|
||||
0) printf -v logMsg "done${format:+ ($format)}.\n" "${args[@]}"
|
||||
|
@ -70,12 +70,12 @@ set -e
|
||||
done <<< "$niftyNinePatch"
|
||||
fnip
|
||||
else
|
||||
echo >&2 'pinf'
|
||||
pinf '%s -> %s' "${src##*/}" "${dst##*/}"
|
||||
echo >&2 'cp <$src> <$dst>'
|
||||
echo >&2 "pinf: $?"
|
||||
cp "$src" "$dst"
|
||||
echo >&2 'fnip'
|
||||
echo >&2 "cp <$src> <$dst>: $?"
|
||||
fnip
|
||||
echo >&2 "fnip: $?"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user