Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/helper/post-install/probe/checkURL4BA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ VERBOSE=$6 # verbose option to see additional debug information
RESET_TEXT=`tput sgr0`
BOLD_TEXT=`tput bold`

PROB_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $PROB_DIR
# 'dirname' always prints the path, 'cd' can print the path if CDPATH is set.
# Set PROB_DIR via 'pwd' only and discard the other path printouts.
cd "$( dirname "$0" )" > /dev/null
PROB_DIR="$( pwd )"
echo "$PROB_DIR"

# Funtion to check if given keyword is returned by URL
checkURL() {
Expand Down