Skip to content

Commit

Permalink
Handle lack of TERM support at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan971 committed Nov 22, 2024
1 parent dde9843 commit 7922d06
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/memcache-persistent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

set -euo pipefail

bold=$(tput bold)
normal=$(tput sgr0)
if [ -n "${TERM:-}" ]; then
bold=$(tput bold)
normal=$(tput sgr0)
else
bold=""
normal=""
fi

# Defaults
MEMCACHE_BINARY_DEFAULT="$(which memcached)"
Expand Down

0 comments on commit 7922d06

Please sign in to comment.