use script dir as repo name
This commit is contained in:
parent
9bad824eaf
commit
495a03b8a9
1 changed files with 2 additions and 1 deletions
|
@ -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)}')
|
||||
|
|
Loading…
Reference in a new issue