fix: Readd renamed error_specify_path function, cleanup
This commit is contained in:
parent
d72f007b9c
commit
53e7f2b203
19
quickget
19
quickget
|
@ -170,12 +170,6 @@ function error_specify_os() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
os_path_error() {
|
|
||||||
echo 'ERROR! You must specify path.'
|
|
||||||
os_error
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
os_supported() {
|
os_supported() {
|
||||||
if [[ ! " $(os_support) " =~ " ${OS} " ]]; then
|
if [[ ! " $(os_support) " =~ " ${OS} " ]]; then
|
||||||
os_not_supported
|
os_not_supported
|
||||||
|
@ -218,6 +212,13 @@ function error_specify_edition() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#TODO: Not yet used!
|
||||||
|
function error_specify_path() {
|
||||||
|
echo 'ERROR! You must specify path.'
|
||||||
|
error_specify_os
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
function error_not_supported_os() {
|
function error_not_supported_os() {
|
||||||
echo -e "ERROR! ${OS} is not a supported OS.\n"
|
echo -e "ERROR! ${OS} is not a supported OS.\n"
|
||||||
os_support | fold -s -w "$(tput cols)"
|
os_support | fold -s -w "$(tput cols)"
|
||||||
|
@ -3506,12 +3507,6 @@ handle_missing() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
os_path_error() {
|
|
||||||
echo 'ERROR! You must specify path.'
|
|
||||||
os_error
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
CURL=$(command -v curl)
|
CURL=$(command -v curl)
|
||||||
if [ ! -e "${CURL}" ]; then
|
if [ ! -e "${CURL}" ]; then
|
||||||
echo "ERROR! curl not found. Please make install curl"
|
echo "ERROR! curl not found. Please make install curl"
|
||||||
|
|
Loading…
Reference in New Issue