From 311f656f1d94049462825ad09f36f3e1ff45c25b Mon Sep 17 00:00:00 2001 From: spirillen <44526987+spirillen@users.noreply.github.com> Date: Wed, 25 Dec 2024 07:44:43 +0000 Subject: [PATCH] Update sort.sh Changed the way we change dir in sort.sh, do to evil experience in @matrix, where the exit parameter, was the only command executed Signed-off-by: spirillen <44526987+spirillen@users.noreply.github.com> --- tools/sort.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/sort.sh b/tools/sort.sh index f2d7a63..6af3cde 100644 --- a/tools/sort.sh +++ b/tools/sort.sh @@ -5,7 +5,14 @@ set -e GIT_DIR="$(git rev-parse --show-toplevel)" if [ -d "$GIT_DIR" ]; then - cd "${GIT_DIR}" || exit 1 + if cd "${GIT_DIR}"; then # Maked the dir change a IF do to bad experience in @matrix + echo "Change dir Ok" + echo "Print working directory: $PWD" + echo + else + echo "This is not a git repo. Exiting" + exit 1 + fi HIERARCHICALLY=( "add-domain" # Sorting hierarchically do to sub-domains