add _spinner_

This commit is contained in:
Nathaniel Landau
2021-11-14 23:32:59 -05:00
parent 6c54c7f902
commit 6fe9e43cb5
6 changed files with 237 additions and 129 deletions

View File

@@ -53,6 +53,9 @@ _trapCleanup_() {
local _script="${5:-}"
local _sourced="${6:-}"
# Replace the cursor in-case 'tput civis' has been used
tput cnorm
if declare -f "fatal" &>/dev/null && declare -f "_printFuncStack_" &>/dev/null; then
_funcstack="'$(printf "%s" "${_funcstack}" | sed -E 's/ / < /g')'"