Skip to content

Instantly share code, notes, and snippets.

if test -t 1; then
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
black=$(eval tput setaf 0);
red=$(eval tput setaf 1);
green=$(eval tput setaf 2);
yellow=$(eval tput setaf 3);
blue=$(eval tput setaf 4);
magenta=$(eval tput setaf 5);
cyan=$(eval tput setaf 6);
@Marneus68
Marneus68 / ss13.sh
Created March 20, 2019 16:28
Didn't work out of the box so I tweaked it.
#!/bin/sh
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
mkdir -p log
echo -e "${GREEN}Checking for wine...${NC}"