fix os detection
This commit is contained in:
parent
fb40e391d9
commit
6a64c13191
1 changed files with 3 additions and 2 deletions
5
Makefile
5
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue