Skip to content

Commit

Permalink
Update sort.sh
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
spirillen authored Dec 25, 2024
1 parent b7b9947 commit 311f656
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/sort.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 311f656

Please sign in to comment.