diff --git a/bash-test.sh b/bash-test.sh index 59301da..ff2b9b0 100755 --- a/bash-test.sh +++ b/bash-test.sh @@ -1,24 +1,11 @@ #!/usr/bin/env bash -function print_progress { - bar='[ ' - for ((k = 0; k < 32; k++)); do - if ((k < (32 * ($2 + 1) / $1))); then - bar+='#' - else - bar+=' ' - fi - done - bar+=' ]' - echo -ne "\r${bar}" -} +mapfile -t array <