From bf11feb48bd132d62cfb30e525986359c58135c0 Mon Sep 17 00:00:00 2001 From: gokul swaminathan <33443763+JavaCafe01@users.noreply.github.com> Date: Sat, 24 Apr 2021 16:32:41 -0700 Subject: [PATCH] fix: makefile login shell file fix (#38) This fixes the problem where installing kept adding hilbish to `/etc/shells` even if it was already there. * fix: makefile login shell file fix * style: remove extra space in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1c0f5f..f336963 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: