summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-07 12:32:34 -0800
committerGitHub <noreply@github.com>2019-01-07 12:32:34 -0800
commit90b5b935a36e7034ac18c2852f768f9073a759fb (patch)
treec411758447a1f0ca8e06020b611337b90351f758
parent8c8d895d66f4bebe004463f77298a20a726b6690 (diff)
parentb9814e76b27d6225ab83e0b1cfc14f888e382016 (diff)
downloadpodman-90b5b935a36e7034ac18c2852f768f9073a759fb.tar.gz
podman-90b5b935a36e7034ac18c2852f768f9073a759fb.tar.bz2
podman-90b5b935a36e7034ac18c2852f768f9073a759fb.zip
Merge pull request #2100 from cevich/very_small_simplification
Minor: Remove redundant basename command in ooe.sh
-rwxr-xr-xcontrib/cirrus/ooe.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cirrus/ooe.sh b/contrib/cirrus/ooe.sh
index d79e574b2..3c8a0409d 100755
--- a/contrib/cirrus/ooe.sh
+++ b/contrib/cirrus/ooe.sh
@@ -7,10 +7,10 @@
set -eo pipefail
-SCRIPT_PATH="$0"
+SCRIPT_BASEDIR="$(basename $0)"
badusage() {
- echo "Incorrect usage: $(basename $SCRIPT_PATH) <command> [options]" > /dev/stderr
+ echo "Incorrect usage: $SCRIPT_BASEDIR) <command> [options]" > /dev/stderr
echo "ERROR: $1"
exit 121
}
@@ -18,7 +18,7 @@ badusage() {
COMMAND="$@"
[[ -n "$COMMAND" ]] || badusage "No command specified"
-OUTPUT_TMPFILE="$(mktemp -p '' $(basename $0)_output_XXXX)"
+OUTPUT_TMPFILE="$(mktemp -p '' ${SCRIPT_BASEDIR}_output_XXXX)"
output_on_error() {
RET=$?
set +e