From 5b310315e8d6c37878aeda90b2d5a41af0d55edd Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 18 Oct 2016 14:29:41 +0200 Subject: [PATCH] feat(check_qml): remove symlink support --- tests/tools/check_qml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/tools/check_qml b/tests/tools/check_qml index 3221c899e..f2a4a65ab 100755 --- a/tests/tools/check_qml +++ b/tests/tools/check_qml @@ -12,20 +12,8 @@ GREEN='\e[1;32m' BLUE='\e[1;34m' NC='\e[0m' -function go_to_source_file_dir { - # See: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in - SOURCE="${BASH_SOURCE[0]}" - while [ -h "$SOURCE" ]; do - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" - done - SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - - cd $SCRIPT_DIR/.. -} - -go_to_source_file_dir +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $SCRIPT_DIR/.. printf "${BLUE}Checking qml files...${NC}\n"