Merge pull request #174219 from PhilippWoelfel/fix/nixos/calibre-web

nixos/calibre-web: Add quotes to test for calibre library
This commit is contained in:
Martin Weinelt 2022-07-05 12:07:47 +02:00 committed by GitHub
commit 9082cc6ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ in
${pkgs.sqlite}/bin/sqlite3 ${appDb} "update settings set ${settings}"
'' + optionalString (cfg.options.calibreLibrary != null) ''
test -f ${cfg.options.calibreLibrary}/metadata.db || { echo "Invalid Calibre library"; exit 1; }
test -f "${cfg.options.calibreLibrary}/metadata.db" || { echo "Invalid Calibre library"; exit 1; }
''
);