run linting

This commit is contained in:
Jose Diaz-Gonzalez
2015-09-06 22:36:32 -04:00
parent 89b48a2e3b
commit 89fbc799e2
3 changed files with 6 additions and 6 deletions

View File

@@ -164,7 +164,7 @@ case "$1" in
$PLUGIN_COMMAND_PREFIX:info) $PLUGIN_COMMAND_PREFIX:info)
[[ -z $2 ]] && dokku_log_fail "Please specify a name for the service" [[ -z $2 ]] && dokku_log_fail "Please specify a name for the service"
verify_service_name "$2" verify_service_name "$2"
service_info $2 service_info "$2"
;; ;;
$PLUGIN_COMMAND_PREFIX:list) $PLUGIN_COMMAND_PREFIX:list)

View File

@@ -50,7 +50,7 @@ service_info() {
} }
service_list() { service_list() {
local SERVICES=$(ls $PLUGIN_DATA_ROOT 2> /dev/null) local SERVICES=$(ls "$PLUGIN_DATA_ROOT" 2> /dev/null)
if [[ -z $SERVICES ]]; then if [[ -z $SERVICES ]]; then
dokku_log_warn "There are no $PLUGIN_SERVICE services" dokku_log_warn "There are no $PLUGIN_SERVICE services"
else else

View File

@@ -2,11 +2,11 @@
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname "$0")/config" source "$(dirname "$0")/config"
if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q $PLUGIN_IMAGE_VERSION ; then if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q "$PLUGIN_IMAGE_VERSION" ; then
docker pull $PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION"
fi fi
docker pull svendowideit/ambassador:latest docker pull svendowideit/ambassador:latest
mkdir -p $PLUGIN_DATA_ROOT || echo "Failed to create $PLUGIN_SERVICE directory" mkdir -p "$PLUGIN_DATA_ROOT" || echo "Failed to create $PLUGIN_SERVICE directory"
chown dokku:dokku $PLUGIN_DATA_ROOT chown dokku:dokku "$PLUGIN_DATA_ROOT"