diff --git a/cli/src/main/package/functions b/cli/src/main/package/functions index c5fdf0975..6774de33f 100644 --- a/cli/src/main/package/functions +++ b/cli/src/main/package/functions @@ -30,7 +30,7 @@ function icd() { ide init return elif [ $# -gt 2 ]; then - echo -e "\033[93mInvalid usage icd $*\033[39m" >&2 + echo -e "\033[91mInvalid usage icd $*\033[39m" >&2 return 1 fi if [ "$1" = "-p" ]; then diff --git a/cli/src/main/package/setup b/cli/src/main/package/setup index b1e90a4b5..c37cef0ee 100755 --- a/cli/src/main/package/setup +++ b/cli/src/main/package/setup @@ -22,6 +22,7 @@ function doSetupInConfigFile() { cd "$(dirname "${BASH_SOURCE:-$0}")" || exit 255 if [ "${PWD/*\//}" != "_ide" ]; then echo -e "\033[93mInvalid installation path $PWD - you need to install IDEasy to a folder named '_ide'.\033[39m" >&2 + exit 1 fi echo "Setting up IDEasy in ${PWD}" cd .. @@ -30,3 +31,5 @@ source "$IDE_ROOT/_ide/functions" doSetupInConfigFile ~/.bashrc doSetupInConfigFile ~/.zshrc + +echo -e "\033[93mATTENTION: IDEasy has been setup for your shells but you need to start a new shell to make it work.\nOnly if you invoked this setup script by sourcing it, you are able to run 'ide' and 'icd' commands without starting a new shell.\n\033[39m" >&2