fix: reverse quotes for variable expansion

Without reversing quotes, the variables are sometimes improperly expanded, resulting in files not being removed.
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-20 17:56:50 -07:00
parent 0087296bd3
commit da4361583b
12 changed files with 14 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ git_build_app_repo() {
# clean up after ourselves
local GIT_BUILD_APP_REPO_TMP_WORK_DIR=$(mktemp -d "/tmp/dokku_git.XXXX")
trap 'rm -rf "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" >/dev/null' RETURN INT TERM EXIT
trap "rm -rf '$GIT_BUILD_APP_REPO_TMP_WORK_DIR' >/dev/null" RETURN INT TERM EXIT
local TMP_TAG="dokku/$REV"
chmod 755 "$GIT_BUILD_APP_REPO_TMP_WORK_DIR"