Compare commits

..

No commits in common. "e4218a135ad4fd938171277187b42687331a4f5b" and "deb1bc8a5e21bc2b05774a5a5d0b259867595e75" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View File

@ -9,14 +9,12 @@ install:
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish" @install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
@mkdir -p "$(LIBDIR)" @mkdir -p "$(LIBDIR)"
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r @cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
@echo /usr/bin/hilbish >> /etc/shells
@echo "Hilbish Installed" @echo "Hilbish Installed"
uninstall: uninstall:
@rm -vrf \ @rm -vrf \
"$(BINDIR)/hilbish" \ "$(BINDIR)/hilbish" \
"$(LIBDIR)" "$(LIBDIR)"
@sed '/\/usr\/bin\/hilbish/d' /etc/shells
@echo "Hilbish Uninstalled" @echo "Hilbish Uninstalled"
clean: clean:

14
main.go
View File

@ -59,14 +59,12 @@ func main() {
} }
homedir, _ := os.UserHomeDir() homedir, _ := os.UserHomeDir()
if _, err := os.Stat(homedir + "/.hilbishrc.lua"); os.IsNotExist(err) { err = os.WriteFile(homedir + "/.hilbishrc.lua", input, 0644)
err = os.WriteFile(homedir + "/.hilbishrc.lua", input, 0644) if err != nil {
if err != nil { fmt.Println("Error creating config file")
fmt.Println("Error creating config file") fmt.Println(err)
fmt.Println(err) return
return }
}
}
HandleSignals() HandleSignals()
LuaInit() LuaInit()