Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better branch detection in deploy.sh.

  • Loading branch information...
commit da5690dd4a5a3aa4730f43b4f05d7c60509672ad 1 parent 4f04b54
@stephank authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 deploy.sh
View
6 deploy.sh
@@ -1,8 +1,10 @@
-#!/bin/sh
+#!/bin/bash
set -x -e
-currentHead=`git symbolic-ref HEAD`
+currentHead=$(git symbolic-ref -q HEAD) ||
+ currentHead=$(git rev-parse HEAD)
+currentHead=${currentHead##refs/heads/}
git checkout -B gh-pages
cake -c build
Please sign in to comment.
Something went wrong with that request. Please try again.