diff --git a/CHANGELOG.md b/CHANGELOG.md index e6eeed8..c53ff4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ hilbish.run('wc -l', { ### Fixed - Fix ansi attributes causing issues with text when cut off in greenhouse +- Fix not compiling on freebsd ## [2.2.3] - 2024-04-27 ### Fixed diff --git a/execfile_unix.go b/execfile_unix.go index 44f924a..fd83f56 100644 --- a/execfile_unix.go +++ b/execfile_unix.go @@ -1,4 +1,4 @@ -// +build linux darwin +// +build unix package main diff --git a/job_unix.go b/job_unix.go index 5029012..8482294 100644 --- a/job_unix.go +++ b/job_unix.go @@ -1,4 +1,4 @@ -// +build darwin linux +// +build unix package main diff --git a/signal_unix.go b/signal_unix.go index 2e6c885..921c4b8 100644 --- a/signal_unix.go +++ b/signal_unix.go @@ -1,4 +1,4 @@ -// +build darwin linux +// +build unix package main diff --git a/vars_linux.go b/vars_unix.go similarity index 87% rename from vars_linux.go rename to vars_unix.go index e1160ba..224a295 100644 --- a/vars_linux.go +++ b/vars_unix.go @@ -1,4 +1,4 @@ -// +build linux +// +build linux freebsd package main @@ -6,8 +6,8 @@ package main var ( requirePaths = commonRequirePaths + `.. ';' .. hilbish.dataDir .. '/libs/?/init.lua;' - .. hilbish.dataDir .. '/libs/?/?.lua;'` + linuxUserPaths - linuxUserPaths = ` + .. hilbish.dataDir .. '/libs/?/?.lua;'` + unixUserPaths + unixUserPaths = ` .. hilbish.userDir.data .. '/hilbish/libs/?/init.lua;' .. hilbish.userDir.data .. '/hilbish/libs/?/?.lua;' .. hilbish.userDir.data .. '/hilbish/libs/?.lua;'