pipewire-v4l2: pw-v4l2.in: fix parameter expansion in quotes

`@LIBV4L2_PATH@` can be expanded into a string containing literally
`${LIB}`, which is then reexpanded by the shell since it's enclosed in
double quotes. We fix this by using single quotes instead.
This commit is contained in:
Arseny Maslennikov 2021-10-23 03:55:44 +03:00
parent d460c96273
commit ddb38bd742

View File

@ -55,9 +55,9 @@ done
shift $(( OPTIND - 1 ))
if [ "$LD_PRELOAD" = "" ] ; then
LD_PRELOAD="@LIBV4L2_PATH@/libpw-v4l2.so"
LD_PRELOAD='@LIBV4L2_PATH@/libpw-v4l2.so'
else
LD_PRELOAD="$LD_PRELOAD @LIBV4L2_PATH@/libpw-v4l2.so"
LD_PRELOAD="$LD_PRELOAD "'@LIBV4L2_PATH@/libpw-v4l2.so'
fi
export LD_PRELOAD