Showing
1 changed file
with
9 additions
and
1 deletions
| @@ -5,6 +5,13 @@ umask 000 # create files with all right for anyone | @@ -5,6 +5,13 @@ umask 000 # create files with all right for anyone | ||
| 5 | shopt -s nullglob # expand patterns which match no file to a null string | 5 | shopt -s nullglob # expand patterns which match no file to a null string |
| 6 | shopt -s extdebug | 6 | shopt -s extdebug |
| 7 | 7 | ||
| 8 | +function atExit | ||
| 9 | +{ | ||
| 10 | + echo -en "\033[?25h" # show cursor | ||
| 11 | +} | ||
| 12 | + | ||
| 13 | +trap atExit EXIT | ||
| 14 | + | ||
| 8 | # -------------------------------------------------------------- | 15 | # -------------------------------------------------------------- |
| 9 | # das Verzeichnis in dem dieses script liegt herausfinden | 16 | # das Verzeichnis in dem dieses script liegt herausfinden |
| 10 | scriptDir=${0%/*} | 17 | scriptDir=${0%/*} |
| @@ -359,7 +366,7 @@ test ${verbose} -ge 1 && echo "${ready}" | @@ -359,7 +366,7 @@ test ${verbose} -ge 1 && echo "${ready}" | ||
| 359 | # ---------------------------------------------------------------- | 366 | # ---------------------------------------------------------------- |
| 360 | # now do the ripping | 367 | # now do the ripping |
| 361 | test ${verbose} -eq 1 && echo -n "${startRipMsg1}" | 368 | test ${verbose} -eq 1 && echo -n "${startRipMsg1}" |
| 362 | -test ${verbose} -ge 2 && echo "${startRipMsg2}" | 369 | +test ${verbose} -ge 2 && { echo "${startRipMsg2}"; echo -en "\033[?25l"; } |
| 363 | 370 | ||
| 364 | i=0 | 371 | i=0 |
| 365 | while [ $i -lt ${#tTitle[@]} ] | 372 | while [ $i -lt ${#tTitle[@]} ] |
| @@ -460,5 +467,6 @@ do | @@ -460,5 +467,6 @@ do | ||
| 460 | i=$((i+1)) | 467 | i=$((i+1)) |
| 461 | done | 468 | done |
| 462 | 469 | ||
| 470 | +test ${verbose} -ge 2 && echo -en "\033[?25h" | ||
| 463 | test ${verbose} -eq 1 && echo "${ready}" | 471 | test ${verbose} -eq 1 && echo "${ready}" |
| 464 | # ---------------------------------------------------------------- | 472 | # ---------------------------------------------------------------- |
Please
register
or
login
to post a comment