From 973132ac078b81afa76d0278a5fd87d4ed04e8df Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:14:10 +0200 Subject: [PATCH] fix: fix Shellcheck test error (#153) * fix: fix Shellcheck test error Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> * style: remove empty condition Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> --------- Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> --- tools/configure.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/configure.sh b/tools/configure.sh index fc14f2c2..5913659c 100755 --- a/tools/configure.sh +++ b/tools/configure.sh @@ -166,18 +166,14 @@ specify_root_path() { root_path_msg default_path_msg read -erp "Please enter path: " -i "${CN_CONFIG_ROOTPATH}" reply - if [[ -z "${reply}" ]]; then - CN_CONFIG_ROOTPATH="${CN_CONFIG_ROOTPATH}" - return 0 - fi if [[ -n "${reply}" ]]; then CN_CONFIG_ROOTPATH="${reply}" CN_CONFIG_CONFIGPATH="${CN_CONFIG_ROOTPATH}/config" CN_CONFIG_LOGPATH="${CN_CONFIG_ROOTPATH}/logs" CN_CONFIG_ENVPATH="${CN_CONFIG_ROOTPATH}/systemd" CN_MOONRAKER_CONFIG_PATH="${CN_CONFIG_CONFIGPATH}/moonraker.conf" - return 0 fi + return 0 } specify_config_path() {