fix: properly report last-updated

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-17 17:19:14 -05:00
parent d5dbd456ea
commit d16ff7fa12

View File

@@ -236,7 +236,7 @@ fn-git-last-updated-at() {
declare desc="retrieve the deploy branch for a given application"
declare APP="$1"
local DOKKU_DEPLOY_BRANCH="$(fn-git-deploy-branch "$APP")"
local HEAD_FILE="/home/dokku/test/refs/heads/$DOKKU_DEPLOY_BRANCH"
local HEAD_FILE="/home/dokku/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH"
if [[ -f "$HEAD_FILE" ]]; then
stat -c %Y "$HEAD_FILE"