summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-05 00:31:45 -0800
committerGitHub <noreply@github.com>2019-12-05 00:31:45 -0800
commitbc40282aec08b71719c55dc9416f776868ef9f62 (patch)
tree85f8cb1e76acb307d21211887b7078b15fc14cc5
parent4dbab37e05d7daff858a8b1b968240dcf729d35a (diff)
parent9db92d540aeb2a13681d4ee4c1f43a5efde9755f (diff)
downloadpodman-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-xhack/get_release_info.sh5
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:]]+\*[)]'