Follow bashstyle where possible

This commit is contained in:
Jose Diaz-Gonzalez committed 2015-09-16 16:06:31 -07:00
1 parent 1c53250211
commit 27a2478a33
20 files changed
+89 -89

No files matched your search

+3 -4
View File
@@ -31,11 +31,10 @@ case "$1" in
git-hook)
APP=$2
while read oldrev newrev refname
do
while read oldrev newrev refname; do
# Only run this script for the master branch. You can remove this
# if block if you wish to run it for others as well.
if [[ $refname = "refs/heads/master" ]] ; then
if [[ $refname = "refs/heads/master" ]]; then
# broken out into plugin so we might support other methods to receive an app
plugn trigger receive-app $APP $newrev
else
@@ -67,7 +66,7 @@ case "$1" in
git-build-locked)
APP="$2"
if [[ $# -ge 3 ]];then
if [[ $# -ge 3 ]]; then
REF="$3"
else
REF=$(< "$DOKKU_ROOT/$APP/refs/heads/master")
+1 -1
View File
@@ -5,7 +5,7 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
APP="$1"; REV="$2"
# Don't trigger git build if there is no git repository.
if [ ! -d "$DOKKU_ROOT/$APP/refs" ]; then
if [[ ! -d "$DOKKU_ROOT/$APP/refs" ]]; then
true
else
dokku git-build $APP $REV