diff --git a/podman_push.sh b/podman_push.sh index d48caf9..d61b445 100644 --- a/podman_push.sh +++ b/podman_push.sh @@ -1,5 +1,6 @@ #!/bin/bash -repo="$(basename "$(pwd)")" +script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +repo="$(basename "${script_dir}")" tag="${1}" if [ -z "${tag}" ]; then git_reference=$(grep '^ref: ' .git/HEAD | awk 'BEGIN {FS="/"} {print($NF)}')