Fix shell escaping in Bookwyrm package

This commit is contained in:
Reinout Meliesie 2025-03-09 13:25:58 +01:00
parent edf97f1df0
commit b0ba993543
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -144,7 +144,7 @@ mkDerivation {
cat <<- EOF > $out/bin/bookwyrm-env
#!${bash}/bin/sh
if [ $( id -un ) != "bookwyrm" -o $( id -gn ) != "bookwyrm" ] ; then
if [ \$( id -un ) != "bookwyrm" -o \$( id -gn ) != "bookwyrm" ] ; then
echo "You are not running as the 'bookwyrm' user and group, quitting"
exit 1
fi