From 53e7f2b203b20ca2f8d853f1159e9fd3f718b032 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 21 Apr 2024 10:47:22 +0200 Subject: [PATCH] fix: Readd renamed error_specify_path function, cleanup --- quickget | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/quickget b/quickget index 05ba84b..97f19ed 100755 --- a/quickget +++ b/quickget @@ -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"