From 3df33e1a679c6331e608ca4ca2036f5d9e96ef25 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 18 Feb 2025 12:35:25 +0900 Subject: updated copy.sh --- copy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy.sh b/copy.sh index 08dd1e9d..722ca214 100755 --- a/copy.sh +++ b/copy.sh @@ -37,7 +37,7 @@ print_color() { } # Check /etc/os-release to see if this is an Ubuntu or Debian based distro -if grep -q '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release &> /dev/null; then +if grep -iq '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release >/dev/null 2>&1; then printf "\n%.0s" {1..1} print_color $WARNING " █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ @@ -115,7 +115,7 @@ if hostnamectl | grep -q 'Operating System: NixOS'; then fi # Check if dpkg is installed (use to check if Debian or Ubuntu or based distros -if command -v dpkg &> /dev/null; then +if grep -iq '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release >/dev/null 2>&1; then echo "${INFO} Debian/Ubuntu based distro. Disabling pyprland since it does not work properly" 2>&1 | tee -a "$LOG" || true # disabling pyprland as causing issues sed -i '/^exec-once = pypr &/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf -- cgit v1.2.3