Skip to content

Commit

Permalink
fix and skip windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 12, 2024
1 parent 20e8eb7 commit b7c3df2
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions quickget
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
#shellcheck disable=SC1001,1003,1083,2016,2046,2086,2155,2206,2207,2068,2071,2076,2162,2317
export LC_ALL=C
#set -x

# Here the quick 'n dirty guide to adding a new OS to quickget
#
Expand Down Expand Up @@ -32,6 +33,11 @@ function cleanup() {
fi
}

# Get string before first whitespace (HASH)
function cut_1() {
cut -d' ' -f1
}

function os_info() {
local SIMPLE_NAME=""
local INFO=""
Expand Down Expand Up @@ -348,7 +354,7 @@ test_isos() {
}

for OS in $(os_support); do
case ${OS} in
case "${OS}" in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
Expand All @@ -360,10 +366,12 @@ test_isos() {
check_it
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
check_it
done
# skipping because of microsoft
echo "Windows skipped"
#"languages_${OS}"
#for OPTION in "${LANGS[@]}"; do
# check_it
#done
else
validate_release releases_${OS}
URL=$(get_${OS} ${RELEASE} | cut_1)
Expand Down Expand Up @@ -477,11 +485,6 @@ function os_support() {
zorin
}

# Get string before first whitespace (HASH)
function cut_1() {
cut -d' ' -f1
}

function releases_alma() {
echo 9 8
}
Expand Down Expand Up @@ -3683,13 +3686,13 @@ case "${1}" in
list_json
;;
'-ls'|'--list-supported')
list_supported
time list_supported
;;
'-li'|'--list-isos')
list_isos
time list_isos
;;
'-ti'|'--test-isos')
test_isos
time test_isos
;;
'-d'|'--iso-download')
download_iso=1
Expand Down

0 comments on commit b7c3df2

Please sign in to comment.