Skip to content

Commit

Permalink
fix: fix Shellcheck test error (#153)
Browse files Browse the repository at this point in the history
* fix: fix Shellcheck test error

Signed-off-by: Patrick Gehrsitz <[email protected]>

* style: remove empty condition

Signed-off-by: Patrick Gehrsitz <[email protected]>

---------

Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 authored Aug 7, 2023
1 parent 7047a4a commit 973132a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 973132a

Please sign in to comment.