Use POSIX functions

This commit is contained in:
Corrado Primier 2020-02-28 12:30:12 +00:00
parent 8a0fd7162c
commit 885839d789

View File

@ -6,15 +6,15 @@ REPODIR=`realpath ${SCRIPTDIR}/..`
git=`command -v git` git=`command -v git`
function msg { msg() {
echo "`tput bold`${*}`tput sgr0`" echo "`tput bold`${*}`tput sgr0`"
} }
function info { info() {
echo "`tput bold``tput setaf 2`[INFO]`tput sgr0` `msg ${*}`" echo "`tput bold``tput setaf 2`[INFO]`tput sgr0` `msg ${*}`"
} }
function err { err() {
echo "`tput bold``tput setaf 1`[ERROR]`tput sgr0` `msg ${*}`" echo "`tput bold``tput setaf 1`[ERROR]`tput sgr0` `msg ${*}`"
} }