fix all spellsheck

This commit is contained in:
fatalerrors
2026-04-16 17:53:46 +02:00
parent c011f03aee
commit 066f2e353e
15 changed files with 137 additions and 54 deletions

View File

@@ -43,6 +43,7 @@ pkgs()
local PARSED
PARSED=$(getopt -o hi --long help,ignore-case -n 'pkgs' -- "$@")
# shellcheck disable=SC2181 # getopt return code is checked immediately after
if [[ $? -ne 0 ]]; then
disp E "Invalid options, use \"pkgs --help\" to display usage."
return 1
@@ -87,10 +88,10 @@ pkgs()
command -v dpkg >/dev/null 2>&1 && local cmd="dpkg -l"
command -v rpm >/dev/null 2>&1 && local cmd="rpm -qa"
if [[ -z $cmd ]]; then
disp E "No usable package manager seems unavialable."
disp E "No usable package manager seems avialable."
return 2
fi
$cmd | grep $grep_opt $pkg
$cmd | grep "$grep_opt" "$pkg"
}
export -f pkgs
# ------------------------------------------------------------------------------