ci: remove obsolete -ca and -ua arguments. closes #1146
This commit is contained in:
parent
88d731895a
commit
9b2eeb6f93
|
@ -92,7 +92,7 @@ jobs:
|
||||||
echo -e "\n\n ISOs:\n\n"
|
echo -e "\n\n ISOs:\n\n"
|
||||||
mkdir -p results
|
mkdir -p results
|
||||||
for os in ${distros}; do
|
for os in ${distros}; do
|
||||||
echo -e "\n\n ${os}" && ./quickget -ua "${os}" | tee -a results/urls.txt
|
echo -e "\n\n ${os}" && ./quickget -u "${os}" | tee -a results/urls.txt
|
||||||
done
|
done
|
||||||
echo -e "\n\nFounded/All URLs: $(cat results/urls.txt | grep 'http' | wc -l)/$(cat results/supported.txt | wc -l)"
|
echo -e "\n\nFounded/All URLs: $(cat results/urls.txt | grep 'http' | wc -l)/$(cat results/supported.txt | wc -l)"
|
||||||
echo -e "\n\n Finished\n\n"
|
echo -e "\n\n Finished\n\n"
|
||||||
|
@ -114,7 +114,7 @@ jobs:
|
||||||
echo -e "\n\n ISOs availability:\n\n"
|
echo -e "\n\n ISOs availability:\n\n"
|
||||||
mkdir -p results
|
mkdir -p results
|
||||||
for os in ${distros}; do
|
for os in ${distros}; do
|
||||||
echo -e "\n\n ${os}" && ./quickget -ca "${os}" | tee -a results/checks.txt
|
echo -e "\n\n ${os}" && ./quickget -c "${os}" | tee -a results/checks.txt
|
||||||
done
|
done
|
||||||
ALL=$(cat results/checks.txt | grep 'http' | wc -l)
|
ALL=$(cat results/checks.txt | grep 'http' | wc -l)
|
||||||
FAILED=$(grep -c 'FAIL:' results/checks.txt)
|
FAILED=$(grep -c 'FAIL:' results/checks.txt)
|
||||||
|
|
23
quickget
23
quickget
|
@ -486,6 +486,7 @@ function test_all() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function os_support() {
|
function os_support() {
|
||||||
|
@ -3366,10 +3367,8 @@ Arguments:
|
||||||
--version (-v) : Show version
|
--version (-v) : Show version
|
||||||
--help (-h) : Show this help message
|
--help (-h) : Show this help message
|
||||||
-------------- For testing & development ---------------------
|
-------------- For testing & development ---------------------
|
||||||
--url (-u) <os> <re> [ed] : Show download URL for an OS release/edition
|
--url (-u) [os] [re] [ed] : Show download URL for what specified or All
|
||||||
--url-all (-ua) [os] : Show all download URLs [for an OS]
|
--check (-c) [os] [re] [ed] : Check download for what specified or All
|
||||||
--check (-c) <os> [re] [ed] : Check download an OS release/edition is available
|
|
||||||
--check-all (-ca) [os] : Check all downloads [for an OS] are available
|
|
||||||
--list (-l) : List all supported systems in plain text
|
--list (-l) : List all supported systems in plain text
|
||||||
--list-csv (-lc) : List all supported systems in csv format
|
--list-csv (-lc) : List all supported systems in csv format
|
||||||
--list-json (-lj) : List all supported systems in json format
|
--list-json (-lj) : List all supported systems in json format
|
||||||
|
@ -3427,36 +3426,24 @@ case "${1}" in
|
||||||
'--url'|'-u')
|
'--url'|'-u')
|
||||||
OPERATION="show"
|
OPERATION="show"
|
||||||
shift
|
shift
|
||||||
;;
|
|
||||||
'--url-all'|'-ua')
|
|
||||||
OPERATION="show"
|
|
||||||
shift
|
|
||||||
# if no OS is specified, list all URLs for all supported OSes
|
|
||||||
if [ -z "${1}" ]; then
|
if [ -z "${1}" ]; then
|
||||||
for OS in $(os_support); do
|
for OS in $(os_support); do
|
||||||
(test_all "${OS}")
|
(test_all "${OS}")
|
||||||
done
|
done
|
||||||
else
|
elif [ -z "${2}" ]; then
|
||||||
test_all "${1}"
|
test_all "${1}"
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
'--check'|'-c')
|
'--check'|'-c')
|
||||||
OPERATION="test"
|
OPERATION="test"
|
||||||
shift
|
shift
|
||||||
;;
|
|
||||||
'--check-all'|'-ca')
|
|
||||||
OPERATION="test"
|
|
||||||
shift
|
|
||||||
# if no OS is specified, check all URLs for all supported OSes
|
|
||||||
if [ -z "${1}" ]; then
|
if [ -z "${1}" ]; then
|
||||||
for OS in $(os_support); do
|
for OS in $(os_support); do
|
||||||
(test_all "${OS}")
|
(test_all "${OS}")
|
||||||
done
|
done
|
||||||
else
|
elif [ -z "${2}" ]; then
|
||||||
test_all "${1}"
|
test_all "${1}"
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
#TODO: Argument without dashes should be DEPRECATED!
|
#TODO: Argument without dashes should be DEPRECATED!
|
||||||
'--list-csv'|'-lc'|'list'|'list_csv'|'lc')
|
'--list-csv'|'-lc'|'list'|'list_csv'|'lc')
|
||||||
|
|
Loading…
Reference in New Issue