Skip to content

Commit

Permalink
cpp build updated
Browse files Browse the repository at this point in the history
  • Loading branch information
billsioros committed Jan 6, 2019
1 parent 26efa1b commit acfada2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cpp-build
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ function log
{
if [ "$1" == ERROR ]
then
echo -e "$prog: $(tput setaf 3)$2$(tput sgr0)"
echo -e "$(tput setaf 3)$prog:~$(tput sgr0) $2"
elif [ "$1" == WARNING ]
then
echo -e "$prog: $(tput setaf 9)$2$(tput sgr0)"
echo -e "$(tput setaf 9)$prog:~$(tput sgr0) $2"
else
echo -e "$prog: $(tput setaf 6)$2$(tput sgr0)"
echo -e "$(tput setaf 6)$prog:~$(tput sgr0) $2"
fi
}

Expand Down Expand Up @@ -342,7 +342,6 @@ do
;;
*)
log ERROR "Invalid syntax! \"$*\""
echo "$(printf "%-$(expr length "$prog: Invalid syntax! \"")s" " ")^"
exit 1
;;
esac
Expand Down

0 comments on commit acfada2

Please sign in to comment.