px4-alias.sh_in: allow for spaces in 'set' alias

Required for expressions like:
set LOGGER_ARGS "${LOGGER_ARGS} -f"
This commit is contained in:
Beat Küng
2020-06-18 11:33:36 +02:00
committed by Daniel Agar
parent e46d605a49
commit 283453b3a5

View File

@@ -6,7 +6,7 @@
# bash and alternatives understand
# define _set first because sh (POSIX shell) does not like overwriting set directly
_set() {
eval $1=$2
eval $1=\"$2\"
}
alias set=_set
# alternative method with an alias: