Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
😄
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate McMaster committed Dec 10, 2016
1 parent aebe4c6 commit a5abd62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ RESET="\033[0m"
RED="\033[0;31m"

# functions
[[ "$(uname)" == "Darwin" ]] && r=" \xf0\x9f\xa4\x96" || r=''

__exec() {
local cmd=$1
shift
Expand All @@ -27,7 +29,9 @@ __exec() {
local exitCode=$?
set -e
if [ $exitCode -ne 0 ]; then
echo -e "\n${RED}[FAIL] '$cmdname $@' failed with exit code $exitCode${RESET}"
[[ "$(uname)" == "Darwin" ]] && r=' \xf0\x9f\x98\xa2' || r=''
echo -e "\n${RED}'$cmdname $@' failed with exit code $exitCode${RESET}"
echo -e "${RED}[FAIL]$r${RESET}"
exit $exitCode
fi
}
Expand Down Expand Up @@ -71,4 +75,4 @@ __exec $DOTNET_HOME/dotnet msbuild build.proj \
/fileloggerparameters:LogFile=artifacts/msbuild.log \
$@

echo -e "\n${GREEN}[Done]${RESET}"
echo -e "\n${GREEN}[Done]$r${RESET}"

0 comments on commit a5abd62

Please sign in to comment.