fix(hyprland.sh): source Global_functions.sh via SCRIPT_DIR (avoid -zsh/readlink issues)

This commit is contained in:
Don Williams 2025-11-10 23:04:36 -05:00
parent 40f7791b31
commit 7df55eb193

View File

@ -32,7 +32,11 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PARENT_DIR="$SCRIPT_DIR/.." PARENT_DIR="$SCRIPT_DIR/.."
cd "$PARENT_DIR" || exit 1 cd "$PARENT_DIR" || exit 1
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" # Source the global functions script robustly using SCRIPT_DIR
if ! source "$SCRIPT_DIR/Global_functions.sh"; then
echo "Failed to source Global_functions.sh"
exit 1
fi
# Set the name of the log file to include the current date and time # Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log" LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log"