From ba6f227560a15e422626f4fbca20690222888e32 Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Tue, 7 Feb 2023 08:22:45 +0100 Subject: [PATCH 1/2] deprecated -l option --- installer.sh | 9 ++++++--- installer/helpers.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/installer.sh b/installer.sh index 44ee310bf..38509d60e 100755 --- a/installer.sh +++ b/installer.sh @@ -85,8 +85,6 @@ echo "" if [ "$#" -ne 1 ]; then echo -e "$RED""$BOLD""Invalid number of arguments""$NC" echo -e "\n\n------------------------------------------------------------------" - echo -e "Probably you would check all packets we are going to install with:" - echo -e "$CYAN"" sudo ./installer.sh -l""$NC" echo -e "If you are going to install EMBA in default mode you can use:" echo -e "$CYAN"" sudo ./installer.sh -d""$NC" echo -e "------------------------------------------------------------------\n\n" @@ -121,7 +119,7 @@ while getopts cCdDFhlr OPT ; do export LIST_DEP=1 export CVE_SEARCH=0 export DOCKER_SETUP=0 - echo -e "$GREEN""$BOLD""List all dependecies""$NC" + echo -e "$GREEN""$BOLD""List all dependecies (Warning: deprected feature)""$NC" ;; r) export REMOVE=1 @@ -135,6 +133,11 @@ while getopts cCdDFhlr OPT ; do esac done +if [[ "$LIST_DEP" -eq 1 ]]; then + echo -e "\n${ORANGE}WARNING: This feature is deprecated and not maintained anymore.$NC" + read -p "If you know what you are doing you can press any key to continue ..." -n1 -s -r +fi + # WSL support - currently experimental! if grep -q -i wsl /proc/version; then echo -e "\n${ORANGE}INFO: System running in WSL environment!$NC" diff --git a/installer/helpers.sh b/installer/helpers.sh index d0f7f001d..7d7e9139d 100755 --- a/installer/helpers.sh +++ b/installer/helpers.sh @@ -23,7 +23,7 @@ print_help() echo -e "$CYAN""-F""$NC"" Developer installation (for running on your host in developer mode)" echo -e "$CYAN""-D""$NC"" Only used via docker-compose for building EMBA docker container" echo -e "$CYAN""-h""$NC"" Print this help message" - echo -e "$CYAN""-l""$NC"" List all dependencies of EMBA" + echo -e "$CYAN""-l""$NC"" List all dependencies of EMBA (deprecated)" echo -e "$CYAN""-r""$NC"" Remove a default installation of EMBA" echo } From b19d240c9433f792adeed1b0e05e2ffc0d79ddd8 Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Tue, 7 Feb 2023 08:25:49 +0100 Subject: [PATCH 2/2] typo --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 38509d60e..7ac4f67ff 100755 --- a/installer.sh +++ b/installer.sh @@ -119,7 +119,7 @@ while getopts cCdDFhlr OPT ; do export LIST_DEP=1 export CVE_SEARCH=0 export DOCKER_SETUP=0 - echo -e "$GREEN""$BOLD""List all dependecies (Warning: deprected feature)""$NC" + echo -e "$GREEN""$BOLD""List all dependecies (Warning: deprecated feature)""$NC" ;; r) export REMOVE=1