Make --image off behave like other modes

This commit is contained in:
Dylan Araps 2016-06-16 17:19:00 +10:00
parent c13c17888e
commit 65c2854caf
1 changed files with 9 additions and 9 deletions

View File

@ -3286,16 +3286,16 @@ getdistro
bold
colors
# If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h"' EXIT
# Clear the scren
clear
# Hide the cursor
printf "\033[?25l"
if [ "$image" != "off" ]; then
# If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h"' EXIT
# Clear the scren
clear
# Hide the cursor
printf "\033[?25l"
# If iterm2 is detected use iterm2 backend.
if [ -n "$ITERM_PROFILE" ]; then
image_backend="iterm2"