diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-12-05 00:31:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-05 00:31:45 -0800 |
commit | bc40282aec08b71719c55dc9416f776868ef9f62 (patch) | |
tree | 85f8cb1e76acb307d21211887b7078b15fc14cc5 | |
parent | 4dbab37e05d7daff858a8b1b968240dcf729d35a (diff) | |
parent | 9db92d540aeb2a13681d4ee4c1f43a5efde9755f (diff) | |
download | podman-bc40282aec08b71719c55dc9416f776868ef9f62.tar.gz podman-bc40282aec08b71719c55dc9416f776868ef9f62.tar.bz2 podman-bc40282aec08b71719c55dc9416f776868ef9f62.zip |
Merge pull request #4644 from ssbarnea/fix/hack-release
Improve hack/get_release_info.sh
-rwxr-xr-x | hack/get_release_info.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hack/get_release_info.sh b/hack/get_release_info.sh index b75751170..c2be6a270 100755 --- a/hack/get_release_info.sh +++ b/hack/get_release_info.sh @@ -4,9 +4,10 @@ # a script allows uniform behavior across multiple environments and # distributions. The script expects a single argument, as reflected below. -set -e +set -euo pipefail -cd "${GOSRC:-$(dirname $0)/../}" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "${GOSRC:-${DIR}/../}" valid_args() { REGEX='^\s+[[:upper:]]+\*[)]' |