troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
622 stars 61 forks source link

[bug] Double name printed when hook script fails #316

Closed hongkongkiwi closed 1 year ago

hongkongkiwi commented 1 year ago

At compile time, I have set my hook scripts directory to: /usr/share/finit/hooks

One of my hook scripts failed and the bootup showed this line:

[ ⋯  ] Calling /usr/share/finit/hooks/sys/up/notify-mqtt.sh/usr/share/finit/hooks/sys/up/notify-mqtt.sh: source: line 2: can't open '/usr/share/mqtt-api.env': No such file or directory
[FAIL]

The source error is expected as I mistyped something, however it looks like there is a double up on the script name here in the output.

troglobit commented 1 year ago

Thanks for reporting, will have a look!

troglobit commented 1 year ago

Indeed, was caused by #317.