big shellcheck cleanup and disabling the shellchecks we will ignore
This commit is contained in:
parent
f90e35f647
commit
6e0fd90dd7
13 changed files with 31 additions and 14 deletions
|
@ -1,12 +1,13 @@
|
|||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
|
||||
function insert_INITRAMFSTOOLS() {
|
||||
# Get the header and enabled modules separately from the /etc/modules file
|
||||
local MODULES_HEADER
|
||||
local MODULES_ENABLED
|
||||
local VENDOR_RESET
|
||||
MODULES_HEADER=$(head -n $1 "$2" | grep -P "^#" | grep -v "# Added by quickpassthrough")
|
||||
MODULES_ENABLED=$(cat "$2" | grep -vP "^#" | grep -v "vendor-reset")
|
||||
MODULES_HEADER=$(head -n "$1" "$2" | grep -P "^#" | grep -v "# Added by quickpassthrough")
|
||||
MODULES_ENABLED=$(grep -vP "^#" "$2" | grep -v "vendor-reset" | perl -pe "s/^\n//")
|
||||
VENDOR_RESET=0
|
||||
|
||||
# If vendor-reset is present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue