setup.sh fix

This commit is contained in:
mrfry 2023-04-08 18:22:54 +02:00
parent dbe6272240
commit e278c35c06
3 changed files with 5 additions and 5 deletions

View file

@ -4,11 +4,11 @@ baseDir=$(pwd)
hr() { [ -t 0 ] && printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='; }
log() { hr; echo -e "\033[0;34m${*@}\033[0m"; hr; }
log() { hr; echo -e "\033[0;34m${@}\033[0m"; hr; }
checkFile() {
if [ ! -f "${*@}" ]; then
log "${*@} does not exists, exiting"
if [ ! -f "${@}" ]; then
log "${@} does not exists, exiting"
exit
fi
}