fix evaluation of checks on non-x86_64-linux

run nix fmt
This commit is contained in:
Jörg Thalheim committed 2023-09-02 18:37:01 +02:00
1 parent 9de99e174c
commit c4f2de908d
3 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ let
*/
writeCheckedBash = { pkgs, checked ? false, noDeps ? false }: pkgs.writers.makeScriptWriter {
interpreter = if noDeps then "/usr/bin/env bash" else "${pkgs.bash}/bin/bash";
check = lib.optionalString checked (pkgs.writeScript "check" ''
check = lib.optionalString (checked && !pkgs.hostPlatform.isRiscV64 && !pkgs.hostPlatform.isx86_32) (pkgs.writeScript "check" ''
set -efu
${pkgs.shellcheck}/bin/shellcheck -e SC2034 "$1"
'');