From 756713b9c3d8a6fb0c174aebf9fcd223ffd8e93b Mon Sep 17 00:00:00 2001 From: vlad doster Date: Fri, 23 Jul 2021 04:17:57 -0500 Subject: [PATCH] (maint): update conditional check and log message - Use more appropriate `-n` flag - Reword log message --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9683ca4..84b5e8d 100755 --- a/install.sh +++ b/install.sh @@ -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)