mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
fix evaluation of checks on non-x86_64-linux
run nix fmt
This commit is contained in:
1 parent
9de99e174c
commit
c4f2de908d
3 files changed
+8
-5
No files matched your search
+1
-1
@@ -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"
|
||||
'');
|
||||
|
||||
Reference in new issue
Block a user