Skip to content

Commit

Permalink
Shellchecks disable and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 3, 2024
1 parent 9391bce commit 56cdfe5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
export LC_ALL=C
# shellcheck disable=SC2317

# Here the quick 'n dirty guide to adding a new OS to quickget
#
Expand All @@ -23,6 +24,7 @@ export LC_ALL=C
# echo "${URL}/${ISO} ${HASH}"
#}

# shellcheck disable=SC2317
function cleanup() {
if [ -n "$(jobs -p)" ]; then
kill "$(jobs -p)" 2>/dev/null
Expand Down Expand Up @@ -142,6 +144,7 @@ function os_info() {
echo "${INFO}"
}

# shellcheck disable=SC2086
function show_os_info() {
while getopts ":12345" opt; do
case $opt in
Expand All @@ -153,7 +156,8 @@ function show_os_info() {

PRETTY_NAME=$(show_os_info -1 "${OS}")

# Just in case quickget want use it
# Just in case quickget want use it in future
# shellcheck disable=SC2005,SC2317
function os_homepage(){
echo $(show_os_info -4 "${1}")
}
Expand Down

0 comments on commit 56cdfe5

Please sign in to comment.