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

@ -1,6 +1,6 @@
#!/bin/bash
function get_GROUP () {
function get_GPU_GROUP () {
clear
# Get the config paths
source "$SCRIPTDIR/lib/paths.sh"
@ -58,9 +58,9 @@ USB_CTL_ID=()
}
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_GROUP "$1"
get_GPU_GROUP "$1"
}
main "$1"