mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 02:10:13 +01:00
fix(hyprland.sh): source Global_functions.sh via SCRIPT_DIR (avoid -zsh/readlink issues)
This commit is contained in:
parent
40f7791b31
commit
7df55eb193
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user