fix(quickget): make show_os_info() shellcheck compliant
https://www.shellcheck.net/wiki/SC2086
This commit is contained in:
parent
77fe26975d
commit
e52ba1fc60
2
quickget
2
quickget
|
@ -124,7 +124,7 @@ function os_info() {
|
||||||
function show_os_info() {
|
function show_os_info() {
|
||||||
while getopts ":12345" opt; do
|
while getopts ":12345" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
1|2|3|4|5) os_info "${2}" | cut -d'|' -f${opt};;
|
1|2|3|4|5) os_info "${2}" | cut -d'|' -f "${opt}";;
|
||||||
*) error_not_supported_argument;;
|
*) error_not_supported_argument;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue