(maint): update conditional check and log message

- Use more appropriate `-n` flag
- Reword log message
This commit is contained in:
vlad doster 2021-07-23 04:17:57 -05:00 committed by GitHub
parent 020daec5fc
commit 756713b9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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