diff --git a/setup.sh b/setup.sh index a5fbdc8..ac18cdc 100755 --- a/setup.sh +++ b/setup.sh @@ -15,6 +15,7 @@ while getopts 'v' OPTION; do esac done +enable_trapping draw_progress_bar 0 log '.: Setting up sono-os v0.1.0 :.' @@ -39,4 +40,5 @@ log 'Copying rules to udev ...' # TODO sleep 1 -draw_progress_bar 100 \ No newline at end of file +draw_progress_bar 100 +destroy_scroll_area \ No newline at end of file diff --git a/src/scripts/utils/progressbar.sh b/src/scripts/utils/progressbar.sh index 2a75440..075f33b 100644 --- a/src/scripts/utils/progressbar.sh +++ b/src/scripts/utils/progressbar.sh @@ -1,16 +1,6 @@ #!/bin/bash # https://github.com/pollev/bash_progress_bar - See license at end of file -# Usage: -# Source this script -# enable_trapping <- optional to clean up properly if user presses ctrl-c -# setup_scroll_area <- create empty progress bar -# draw_progress_bar 10 <- advance progress bar -# draw_progress_bar 40 <- advance progress bar -# block_progress_bar 45 <- turns the progress bar yellow to indicate some action is requested from the user -# draw_progress_bar 90 <- advance progress bar -# destroy_scroll_area <- remove progress bar - # Constants CODE_SAVE_CURSOR="\033[s" CODE_RESTORE_CURSOR="\033[u"