From a5a45841fa0051a002e104ca27c4c839af9fcd3d Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Fri, 24 May 2024 08:31:13 +0900 Subject: [PATCH] Update copy.sh --- copy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copy.sh b/copy.sh index e91e8f0..90c8a07 100755 --- a/copy.sh +++ b/copy.sh @@ -248,15 +248,15 @@ chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" printf "\n%.0s" {1..2} -# Detect machine type and set Waybar configurations accordingly, logging the output +# Detect machine type and set Waybar configurations accordingly if hostnamectl | grep -q 'Chassis: desktop'; then # Configurations for a desktop - ln -sf $waybar_config "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + ln -sf "$waybar_config" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/configs/[BOT] Default Laptop" 2>&1 | tee -a "$LOG" rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop_v2" "$HOME/.config/waybar/configs/[TOP] Default Laptop_v3" 2>&1 | tee -a "$LOG" else # Configurations for a laptop or any system other than desktop - ln -sf $waybar_config_laptop "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + ln -sf "$waybar_config_laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" rm -r "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/configs/[BOT] Default" 2>&1 | tee -a "$LOG" rm -r "$HOME/.config/waybar/configs/[TOP] Default_v2" "$HOME/.config/waybar/configs/[TOP] Default_v3" 2>&1 | tee -a "$LOG" fi