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,7 +1,7 @@
BREW_HOME=/home/linuxbrew
BREW="$BREW_HOME/.linuxbrew/bin/brew"
nop ${BREW_HOME:=/home/linuxbrew}
nop ${BREW:="$BREW_HOME/.linuxbrew/bin/brew"}
if [[ -e $BREW ]]; then
if [[ -e "$BREW" ]]; then
eval "$($BREW shellenv)"
fi