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)
|
stopProgress)
|
||||||
kill -0 "$_logSpinner" 2>/dev/null || return
|
! kill -0 "$_logSpinner" 2>/dev/null && return
|
||||||
|
|
||||||
case $exitcode in
|
case $exitcode in
|
||||||
0) printf -v logMsg "done${format:+ ($format)}.\n" "${args[@]}"
|
0) printf -v logMsg "done${format:+ ($format)}.\n" "${args[@]}"
|
||||||
|
@ -70,12 +70,12 @@ set -e
|
|||||||
done <<< "$niftyNinePatch"
|
done <<< "$niftyNinePatch"
|
||||||
fnip
|
fnip
|
||||||
else
|
else
|
||||||
echo >&2 'pinf'
|
|
||||||
pinf '%s -> %s' "${src##*/}" "${dst##*/}"
|
pinf '%s -> %s' "${src##*/}" "${dst##*/}"
|
||||||
echo >&2 'cp <$src> <$dst>'
|
echo >&2 "pinf: $?"
|
||||||
cp "$src" "$dst"
|
cp "$src" "$dst"
|
||||||
echo >&2 'fnip'
|
echo >&2 "cp <$src> <$dst>: $?"
|
||||||
fnip
|
fnip
|
||||||
|
echo >&2 "fnip: $?"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user