unneccessary check for empty string
This commit is contained in:
parent
9ffd330f59
commit
27432616ba
|
|
@ -246,9 +246,7 @@ nvm_detect_profile() {
|
||||||
USER_SHELL="$SHELL"
|
USER_SHELL="$SHELL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SHELL" ]; then
|
USER_SHELL_NAME="${USER_SHELL##*/}"
|
||||||
USER_SHELL_NAME="${USER_SHELL##*/}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# First try to find the config file based on the shell name
|
# First try to find the config file based on the shell name
|
||||||
if [ -n "${USER_SHELL_NAME}" ]; then
|
if [ -n "${USER_SHELL_NAME}" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue