Use POSIX functions
This commit is contained in:
parent
8a0fd7162c
commit
885839d789
@ -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 ${*}`"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user