diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 0c90825..c5d0b5f 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -32,7 +32,11 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PARENT_DIR="$SCRIPT_DIR/.." 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 LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log"