(maint): update conditional check and log message

- Use more appropriate `-n` flag
- Reword log message
navigator
vlad doster 3 years ago committed by GitHub
parent 020daec5fc
commit 756713b9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ _copy_config() {
}
fi
else
printf "%s\n" "Nvim Config doesn't exist so creating one"
printf "%s\n" "Nvim config doesn't exist, creating it now"
fi
mkdir -p "${_CONFIG_PATH}" || {
@ -78,7 +78,7 @@ _setup_terminal_shell() {
fi
# don't try to do any changes user wants their default shell in nvim
if [ ! -z "$shellNUM" ]; then
if [ -n "$shellNUM" ]; then
shellpath=$(grep '^/bin/' '/etc/shells' | sed -n "$shellNUM p")
# Reference: https://stackoverflow.com/a/4247319
# \( & \) will use regex brackets (for later reference with \1)

Loading…
Cancel
Save