From 495a03b8a95ed947b73f9441f01a1bc6687694b3 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 19 Jul 2025 13:10:26 +0300 Subject: [PATCH] use script dir as repo name --- podman_push.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)}')