fix os detection

This commit is contained in:
Mylloon 2023-03-19 19:15:20 +01:00
parent fb40e391d9
commit 6a64c13191
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -11,6 +11,7 @@ sync-dotconfig:
@echo .config directory synced! @echo .config directory synced!
sync-emacs: sync-emacs:
@echo Emacs config synced! @echo Emacs config synced!
@ -24,14 +25,14 @@ sync-unison:
# === Specific platforms == # === Specific platforms ==
sync: sync:
ifeq ($(shell expr "uname -r" \> "archlinux"), 0) ifeq ($(shell grep -c "archlinux" /proc/version), 1)
# Arch # Arch
@$(MAKE) sync-dotconfig @$(MAKE) sync-dotconfig
@$(MAKE) sync-emacs @$(MAKE) sync-emacs
@$(MAKE) sync-mozilla @$(MAKE) sync-mozilla
else ifeq ($(shell expr "uname -r" \> "WSL2"), 0) else ifeq ($(shell grep -c "WSL" /proc/version), 1)
# WSL # WSL
@$(MAKE) sync-dotconfig @$(MAKE) sync-dotconfig