fix: Readd renamed error_specify_path function, cleanup

This commit is contained in:
zen0bit 2024-04-21 10:47:22 +02:00 committed by Martin Wimpress
parent d72f007b9c
commit 53e7f2b203
1 changed files with 7 additions and 12 deletions

View File

@ -170,12 +170,6 @@ function error_specify_os() {
exit 1
}
os_path_error() {
echo 'ERROR! You must specify path.'
os_error
exit 1
}
os_supported() {
if [[ ! " $(os_support) " =~ " ${OS} " ]]; then
os_not_supported
@ -218,6 +212,13 @@ function error_specify_edition() {
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() {
echo -e "ERROR! ${OS} is not a supported OS.\n"
os_support | fold -s -w "$(tput cols)"
@ -3506,12 +3507,6 @@ handle_missing() {
fi
}
os_path_error() {
echo 'ERROR! You must specify path.'
os_error
exit 1
}
CURL=$(command -v curl)
if [ ! -e "${CURL}" ]; then
echo "ERROR! curl not found. Please make install curl"