Minor: Remove redundant basename command in ooe.sh

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2019-01-07 14:41:52 -05:00
parent 148b4920dc
commit b9814e76b2
No known key found for this signature in database
GPG Key ID: 03EDC70FD578067F
1 changed files with 3 additions and 3 deletions

View File

@ -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