aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-18 12:35:25 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-18 12:35:25 +0900
commit3df33e1a679c6331e608ca4ca2036f5d9e96ef25 (patch)
treefb0445f63d254bfd83dcdf0677c8c58e61c7658b /copy.sh
parente3413db365beda010aa72a5d86e30995aeedab44 (diff)
updated copy.sh
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh4
1 files 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage