From 6a64c131919db8082c7c8d3a8a953078809a55b9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 19 Mar 2023 19:15:20 +0100 Subject: [PATCH] fix os detection --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9ef8c18..370640a 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ sync-dotconfig: @echo .config directory synced! + sync-emacs: @echo Emacs config synced! @@ -24,14 +25,14 @@ sync-unison: # === Specific platforms == sync: -ifeq ($(shell expr "uname -r" \> "archlinux"), 0) +ifeq ($(shell grep -c "archlinux" /proc/version), 1) # Arch @$(MAKE) sync-dotconfig @$(MAKE) sync-emacs @$(MAKE) sync-mozilla -else ifeq ($(shell expr "uname -r" \> "WSL2"), 0) +else ifeq ($(shell grep -c "WSL" /proc/version), 1) # WSL @$(MAKE) sync-dotconfig