From 175728b292dad0d38ed4e48faecbe50db3459fb3 Mon Sep 17 00:00:00 2001 From: Mark Anderson Date: Thu, 9 Jun 2022 16:16:50 -0700 Subject: [PATCH] Minor cleanup for build-date script Signed-off-by: Mark Anderson --- build-support/scripts/build-date.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/build-support/scripts/build-date.sh b/build-support/scripts/build-date.sh index 54b02fced7..e3db3c6626 100755 --- a/build-support/scripts/build-date.sh +++ b/build-support/scripts/build-date.sh @@ -1,14 +1,8 @@ #!/bin/bash -SCRIPT_NAME="$(basename ${BASH_SOURCE[0]})" -pushd $(dirname ${BASH_SOURCE[0]}) > /dev/null -SCRIPT_DIR=$(pwd) -pushd ../.. > /dev/null -SOURCE_DIR=$(pwd) -popd > /dev/null -pushd ../functions > /dev/null -FN_DIR=$(pwd) -popd > /dev/null -popd > /dev/null +readonly SCRIPT_NAME="$(basename ${BASH_SOURCE[0]})" +readonly SCRIPT_DIR="$(dirname ${BASH_SOURCE[0]})" +readonly SOURCE_DIR="$(dirname "$(dirname "${SCRIPT_DIR}")")" +readonly FN_DIR="$(dirname "${SCRIPT_DIR}")/functions" source "${SCRIPT_DIR}/functions.sh"