Unset CDPATH while getting SCRIPT_DIR

This commit is contained in:
San Gillis
2025-10-25 11:34:26 +02:00
parent e6d6f3cdee
commit 2a7c2e9398
5 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ set -o pipefail
#==============================================================================
# Get script directory and load common functions
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SCRIPT_DIR="$(CDPATH="" cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/common.sh"
# Get all paths and variables from common functions