2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-30 18:23:23 +00:00

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
This commit is contained in:
gokul swaminathan 2021-04-24 16:32:41 -07:00 committed by GitHub
parent 926fc96895
commit bf11feb48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: