Use smarter functions for rc.local/ scripts

This commit is contained in:
Martin Blazik
2022-05-29 16:16:21 +02:00
parent 91ab592f83
commit 0f3076dd96
5 changed files with 14 additions and 11 deletions

View File

@@ -1,2 +1,4 @@
prepend_path "$HOME/go/bin"
export GOROOT=$(go env GOROOT)
prepend_path_try "$HOME/go/bin"
if can_run go; then
export GOROOT=$(go env GOROOT)
fi