Make shellcheck happier
This commit is contained in:
parent
4fc07b97f2
commit
901096604c
10 changed files with 20 additions and 19 deletions
|
@ -13,7 +13,7 @@ function set_VFIO () {
|
|||
echo "
|
||||
Disabling video output in Linux for the card you want to use in a VM
|
||||
will make it easier to successfully do the passthrough without issues."
|
||||
read -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA
|
||||
read -r -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA
|
||||
case "${DISABLE_VGA}" in
|
||||
[Yy]*)
|
||||
# Update kernel_args file
|
||||
|
@ -37,7 +37,7 @@ will make it easier to successfully do the passthrough without issues."
|
|||
}
|
||||
|
||||
function main () {
|
||||
SCRIPTDIR=$(dirname "$(realpath $0)" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
|
||||
SCRIPTDIR=$(dirname "$(realpath "$0")" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
|
||||
|
||||
set_VFIO "$1"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue