Skip to content

Commit

Permalink
added check for tput
Browse files Browse the repository at this point in the history
  • Loading branch information
mail4umar committed Aug 9, 2024
1 parent f01150f commit b7f53e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/verticapylab
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ Host $VERTICA_HOST_NAME $SSH_CONFIG_EXTRA_HOSTNAME
" | docker exec -i "$VERTICAPYLAB_CONTAINER_NAME" bash -c 'umask 077; mkdir -p $HOME/.ssh; cat >> $HOME/.ssh/config'


trap 'tput setaf 1; echo "VerticaPy update failed"; tput sgr0; exit 1' EXIT
trap 'if [ -n "$TERM" ] && tput setaf 1 &>/dev/null; then tput setaf 1; fi; echo "VerticaPy update failed"; if [ -n "$TERM" ] && tput sgr0 &>/dev/null; then tput sgr0; fi; exit 1' EXIT


# Try to ping Google's DNS server
ping -c 1 8.8.8.8 &> /dev/null
Expand Down

0 comments on commit b7f53e8

Please sign in to comment.