From af0005196a8c5de5f852c30b5fe64c0333d535ab Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 15 Nov 2014 23:32:30 -0500 Subject: [PATCH] Standardize the way in which we set variables --- plugins/00_dokku-standard/pre-delete | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/00_dokku-standard/pre-delete b/plugins/00_dokku-standard/pre-delete index 5a14726e3..ff0b4c680 100755 --- a/plugins/00_dokku-standard/pre-delete +++ b/plugins/00_dokku-standard/pre-delete @@ -1,9 +1,7 @@ #!/usr/bin/env bash set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x -APP="$1" -IMAGE=dokku/"$1" -CACHE_DIR="$DOKKU_ROOT/$APP/cache" +APP="$1"; IMAGE="dokku/$APP"; CACHE_DIR="$DOKKU_ROOT/$APP/cache" docker run -v $CACHE_DIR:/cache $IMAGE find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \;