mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
types: disable SC2034 in checks by default and suppress SC2043 warning
This commit is contained in:
parent
0accdf4e20
commit
7585a30385
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue