use script dir as repo name

This commit is contained in:
Antonio J. Delgado 2025-07-19 13:10:26 +03:00
parent 9bad824eaf
commit 495a03b8a9

View file

@ -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)}')