This commit is contained in:
JustArchi
2016-03-29 23:32:12 +02:00
parent d8b59c6889
commit 3f7359c608

6
cc.sh
View File

@@ -27,7 +27,7 @@ XBUILD_ARGS+=("/p:Configuration=$BUILD")
cd "$(dirname "$(readlink -f "$0")")"
if [[ -d ".git" ]]; then
if [[ -d ".git" ]] && hash git &>/dev/null; then
git pull
fi
@@ -36,6 +36,10 @@ if [[ ! -f "$SOLUTION" ]]; then
exit 1
fi
if hash nuget &>/dev/null; then
nuget restore "$SOLUTION"
fi
if [[ "$CLEAN" -eq 1 ]]; then
rm -rf out
xbuild "${XBUILD_ARGS[@]}" "/t:Clean" "$SOLUTION"