maybe this'll work
This commit is contained in:
parent
77eed08e7a
commit
1442d4f6c5
4
Makefile
4
Makefile
|
@ -36,9 +36,9 @@ start:
|
||||||
stop:
|
stop:
|
||||||
systemctl stop forged.service
|
systemctl stop forged.service
|
||||||
|
|
||||||
run: install
|
run: build
|
||||||
systemctl stop forged.service
|
systemctl stop forged.service
|
||||||
forged --daemon
|
./forged --daemon
|
||||||
# setcap 'cap_net_bind_service=+ep' forged # allow the binary to open ports below 1024
|
# setcap 'cap_net_bind_service=+ep' forged # allow the binary to open ports below 1024
|
||||||
|
|
||||||
prod: build
|
prod: build
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
// used for shell auto completion
|
// used for shell auto completion
|
||||||
|
|
||||||
func (args) doBashAuto() {
|
func (args) doBashAuto() {
|
||||||
argv.doBashHelp()
|
// argv.doBashHelp()
|
||||||
switch argv.BashAuto[0] {
|
switch argv.BashAuto[0] {
|
||||||
case "merge":
|
case "merge":
|
||||||
fmt.Println("--force")
|
fmt.Println("--force")
|
||||||
|
@ -42,6 +42,7 @@ func (args) doBashHelp() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if argv.BashAuto[0] != ARGNAME {
|
if argv.BashAuto[0] != ARGNAME {
|
||||||
|
fmt.Fprintln(os.Stderr, argv.BashAuto[0])
|
||||||
// if this is not the name of the command, the user already started doing something
|
// if this is not the name of the command, the user already started doing something
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue