janitor

janitor
git clone https://git.prime8.dev/janitor.git
Log | Files | Refs | README | LICENSE

utils.sh (292B)


      1 #!/bin/bash
      2 
      3 default='\033[0m'
      4 bold='\033[1m'
      5 red='\033[31m'
      6 green='\033[32m'
      7 
      8 function ok() {
      9   printf "${bold}${green}[OK]${default} $1\n"
     10 }
     11 
     12 function error() {
     13   printf "${bold}${red}[FAILED]${default} $1\n"
     14 }
     15 
     16 function abort() {
     17   printf "${bold}${red}[FAILED]${default} $1\n"
     18   exit 1
     19 }