diff options
author | Victor Engmark <victor@engmark.name> | 2021-11-26 18:54:23 +1300 |
---|---|---|
committer | Victor Engmark <victor@engmark.name> | 2021-11-26 18:54:23 +1300 |
commit | adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9 (patch) | |
tree | c97bb945a09acca4d693c6527c0fb3f58c912fbe /nixos/modules | |
parent | 02cea625b00fec97ffc5da1a3e992db05b624696 (diff) | |
download | nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar.gz nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar.bz2 nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar.lz nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar.xz nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.tar.zst nixlib-adb8f5c858665d4e7f5cc85dc99d25c8b3395bf9.zip |
nixos/installer: Mark scripts as Bash for ShellCheck
See <https://github.com/koalaman/shellcheck/wiki/SC2239>.
Diffstat (limited to 'nixos/modules')
4 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-build-vms/nixos-build-vms.sh b/nixos/modules/installer/tools/nixos-build-vms/nixos-build-vms.sh index 2a6c3ab11497..ed167b389d03 100644 --- a/nixos/modules/installer/tools/nixos-build-vms/nixos-build-vms.sh +++ b/nixos/modules/installer/tools/nixos-build-vms/nixos-build-vms.sh @@ -1,4 +1,5 @@ #! @runtimeShell@ -e +# shellcheck shell=bash # Shows the usage of this command to the user diff --git a/nixos/modules/installer/tools/nixos-enter.sh b/nixos/modules/installer/tools/nixos-enter.sh index 00883205e8b5..6469d9faa038 100644 --- a/nixos/modules/installer/tools/nixos-enter.sh +++ b/nixos/modules/installer/tools/nixos-enter.sh @@ -1,4 +1,5 @@ #! @runtimeShell@ +# shellcheck shell=bash set -e diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index 135ee1305f12..fc4a69aa17d3 100644 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -1,4 +1,5 @@ #! @runtimeShell@ +# shellcheck shell=bash set -e shopt -s nullglob diff --git a/nixos/modules/installer/tools/nixos-version.sh b/nixos/modules/installer/tools/nixos-version.sh index f5e3f32b3c63..59a9c572b418 100644 --- a/nixos/modules/installer/tools/nixos-version.sh +++ b/nixos/modules/installer/tools/nixos-version.sh @@ -1,4 +1,5 @@ #! @runtimeShell@ +# shellcheck shell=bash case "$1" in -h|--help) |