diff options
author | 2020-04-11 21:38:53 +0200 | |
---|---|---|
committer | 2020-04-11 21:43:17 +0200 | |
commit | 039494e11540c963e7b804e7b4eecbef87d5eaa0 (patch) | |
tree | 2fbf0ffb2ede3197f20b5de6c3a38a9f8423859a | |
parent | defaults/linuxrc: help shellcheck sourcing scripts (diff) | |
download | genkernel-039494e11540c963e7b804e7b4eecbef87d5eaa0.tar.gz genkernel-039494e11540c963e7b804e7b4eecbef87d5eaa0.tar.bz2 genkernel-039494e11540c963e7b804e7b4eecbef87d5eaa0.zip |
defaults/initrd.scripts: ignore SC2045
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r-- | defaults/initrd.scripts | 1 | ||||
-rw-r--r-- | defaults/linuxrc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index d4b159a..514a8bc 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -186,6 +186,7 @@ findmediamount() { # don't skip device mapper devices. Even the craziest scenario # deserves a fair chance. # + # shellcheck disable=SC2045 for part in $(ls /sys/block/${bsn}/${bsn}*[0-9]* 2>/dev/null) do skip=1 diff --git a/defaults/linuxrc b/defaults/linuxrc index b3e1740..964a932 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -1133,6 +1133,7 @@ FSTAB then if [ -e "${CDROOT_PATH}/add" ] then + # shellcheck disable=SC2045 for targz in $(ls ${CDROOT_PATH}/add/*.tar.gz) do tarname=$(basename ${targz}) @@ -1188,6 +1189,7 @@ FSTAB if [ -e "/${NEW_ROOT}/${directory}" ] then # It does exist, link all the individual files + # shellcheck disable=SC2045 for file in $(ls /${NEW_ROOT}/${FS_LOCATION}/${directory}) do if [ ! -d "/${NEW_ROOT}/${FS_LOCATION}/${directory}/${file}" ] && [ ! -e "${NEW_ROOT}/${directory}/${file}" ] |