Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added unsafe ghpublish

  • Loading branch information...
commit 796cd3f3e4d00b0e6afcdf24525fbe92bcef58ab 1 parent 7e6290c
@yogsototh authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 tasks/ghpublish
View
14 tasks/ghpublish
@@ -10,19 +10,19 @@ function debug {
eval $*
}
-if [[ $1 = '--unsafe' ]]; then
- log "UNSAFE no compilation"
-fi
-
current_branch=$(git branch | egrep '^\*' | awk '{print $2}')
cd $rootdir || { print -- "Unable to go to $HOME/Sites/webroot"; exit 1 }
git co master || { exit 1 }
git pull || { exit 1 }
-# empty regen depencies cache because of a bug
-\rm -f ./tmp/*(N)
-./tasks/recompile
+if [[ $1 = '--unsafe' ]]; then
+ log "UNSAFE no compilation"
+else
+ # empty regen depencies cache because of a bug
+ \rm -f ./tmp/*(N)
+ ./tasks/recompile
+fi
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
else
Please sign in to comment.
Something went wrong with that request. Please try again.