mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
types: disable SC2034 in checks by default and suppress SC2043 warning
This commit is contained in:
1 parent
0accdf4e20
commit
7585a30385
1 file changed
+2
-1
+2
-1
@@ -199,7 +199,7 @@ rec {
|
||||
*/
|
||||
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.shellcheck}/bin/shellcheck";
|
||||
check = lib.optionalString checked "${pkgs.shellcheck}/bin/shellcheck -e SC2034";
|
||||
};
|
||||
|
||||
|
||||
@@ -252,6 +252,7 @@ rec {
|
||||
set -efux
|
||||
umount -Rv "${rootMountPoint}" || :
|
||||
|
||||
# shellcheck disable=SC2043
|
||||
for dev in ${toString (lib.catAttrs "device" (lib.attrValues devices.disk))}; do
|
||||
${../disk-deactivate}/disk-deactivate "$dev" | bash -x
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user