From 59f4d7fc76a38ba03542ae5b7c1aa9c585bff30c Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Sun, 9 Mar 2025 13:02:07 +0100 Subject: [PATCH] Fix 'if' syntax and escaping in Bookwyrm package --- packages/bookwyrm/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bookwyrm/package.nix b/packages/bookwyrm/package.nix index c5e937d..e628199 100644 --- a/packages/bookwyrm/package.nix +++ b/packages/bookwyrm/package.nix @@ -144,10 +144,10 @@ mkDerivation { cat <<- EOF > $out/bin/bookwyrm-env #!${bash}/bin/sh - if [ $( id -un ) != "bookwyrm" || $( id -gn ) != "bookwyrm" ] ; do + if [ $( id -un ) != "bookwyrm" || $( id -gn ) != "bookwyrm" ] ; then echo "You are not running as the 'bookwyrm' user and group, quitting" exit 1 - done + fi export PYTHONPATH="$out/lib/python3.11/site-packages" @@ -162,7 +162,7 @@ mkDerivation { # The escape here is required in order to retrieve the key file contents at runtime export SECRET_KEY="\$( ${coreutils-full}/bin/cat /etc/nixos/assets/bookwyrm-secret-key )" - exec $@ + exec \$@ EOF chmod +x $out/bin/*