diff options
author | Benjamin Drung <benjamin.drung@cloud.ionos.com> | 2018-12-10 16:52:36 +0100 |
---|---|---|
committer | Benjamin Drung <benjamin.drung@cloud.ionos.com> | 2018-12-18 13:37:07 +0100 |
commit | 2bab73b939f196c3dd86988d4d95f71152f18f4c (patch) | |
tree | 4690087bb4890184468274b520ef7007829882c8 /scripts/functions | |
parent | f277309e0b6b57ff2f8f9411c026394b7635f3d6 (diff) |
Disable shellcheck for desired behaviour
Sometimes globbing and word splitting is wanted. Therefore explicitly
disable the check for these line.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index ae14eba..57ebd0d 100644 --- a/scripts/functions +++ b/scripts/functions @@ -117,6 +117,7 @@ load_modules() if [ "$com" = "#" ]; then continue fi + # shellcheck disable=SC2086 modprobe $m done < /conf/modules fi @@ -148,6 +149,7 @@ parse_numeric() { ;; esac + # shellcheck disable=SC2034 ROOT="/dev/block/${major}:${minor}" } @@ -185,6 +187,7 @@ _handle_device_vs_ip() # - Otherwise, substitute in any device name we already have local IFS=: set -f + # shellcheck disable=SC2086 set -- ${IP} set +f if [ -n "$6" ]; then @@ -299,6 +302,7 @@ read_fstab_entry() { for file in ${rootmnt?}/etc/fstab; do if [ -f "$file" ]; then + # shellcheck disable=SC2034 while read -r MNT_FSNAME MNT_DIR MNT_TYPE MNT_OPTS MNT_FREQ MNT_PASS MNT_JUNK; do case "$MNT_FSNAME" in ""|\#*) |