fix: makefile login shell file fix

This fixes the problem where installing kept adding hilbish to
`/etc/shells` even if it was already there.
pull/38/head
Gokul Swami 2021-04-24 16:16:50 -07:00
parent 926fc96895
commit 65ea1108b0
1 changed files with 1 additions and 1 deletions

View File

@ -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: