From 65ea1108b0f5661a158676e2b10b03116137e047 Mon Sep 17 00:00:00 2001 From: Gokul Swami Date: Sat, 24 Apr 2021 16:16:50 -0700 Subject: [PATCH] fix: makefile login shell file fix This fixes the problem where installing kept adding hilbish to `/etc/shells` even if it was already there. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1c0f5f..e24c324 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ install: @install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v hilbish "$(DESTDIR)$(BINDIR)/hilbish" @mkdir -p "$(DESTDIR)$(LIBDIR)" @cp libs preload.lua .hilbishrc.lua "$(DESTDIR)$(LIBDIR)" -r - @echo "$(DESTDIR)$(BINDIR)/hilbish" >> /etc/shells + @grep "$(DESTDIR)$(BINDIR)/hilbish" -qxF /etc/shells || echo "$(DESTDIR)$(BINDIR)/hilbish" >> /etc/shells @echo "Hilbish Installed" uninstall: