Make shellcheck happier

This commit is contained in:
HikariKnight 2022-03-12 15:34:40 +01:00
parent 4fc07b97f2
commit 901096604c
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
10 changed files with 20 additions and 19 deletions

View file

@ -15,14 +15,14 @@ does not belong to itself. Both cards must also have unique hardware ids [xxxx:y
Press q to quit
"
read -p "Which group number do you want to check?: " IOMMU_GROUP
read -r -p "Which group number do you want to check?: " IOMMU_GROUP
case "${IOMMU_GROUP}" in
[1-9]*)
exec "$SCRIPTDIR/lib/get_GPU_GROUP.sh" $IOMMU_GROUP
exec "$SCRIPTDIR/lib/get_GPU_GROUP.sh" "$IOMMU_GROUP"
;;
[Qq]*)
printf "Aborted, your setup is incomplete!
echo "Aborted, your setup is incomplete!
DO NOT use any of the files from $SCRIPTDIR/config !
"
;;
@ -33,7 +33,7 @@ DO NOT use any of the files from $SCRIPTDIR/config !
}
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$//")
get_GPU
}