Skip to content

Commit

Permalink
Update to newest sourcing code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaGeRe committed Jan 9, 2025
1 parent 7462708 commit 0826941
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions frameworks/Scouter-java/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,10 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi

if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
if [ -f "${MAIN_DIR}/init.sh" ] ; then
source "${MAIN_DIR}/init.sh"
else
echo "Missing library: ${MAIN_DIR}/common-functions.sh"
exit 1
fi

# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
else
echo "Missing configuration: ${BASE_DIR}/config.rc"
exit 1
fi

if [ -f "${BASE_DIR}/functions.sh" ] ; then
source "${BASE_DIR}/functions.sh"
else
echo "Missing: ${BASE_DIR}/functions.sh"
exit 1
fi
if [ -f "${BASE_DIR}/labels.sh" ] ; then
source "${BASE_DIR}/labels.sh"
else
echo "Missing file: ${BASE_DIR}/labels.sh"
echo "Missing library: ${MAIN_DIR}/init.sh"
exit 1
fi

Expand Down

0 comments on commit 0826941

Please sign in to comment.