From 08cfd552165b93eac6a9eb31319b0d05786f1771 Mon Sep 17 00:00:00 2001 From: Geoffrey McClinsey Date: Thu, 28 Dec 2017 00:24:09 -0500 Subject: [PATCH] shellcheck fixes --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 04e0cf7..dcc70c0 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ _fetch_sources(){ mkdir ~/.nano/ fi - cd ~/.nano/ + cd ~/.nano/ || exit unzip -o "/tmp/nanorc.zip" mv nanorc-master/* ./ @@ -22,9 +22,9 @@ _update_nanorc(){ fi # add all includes from ~/.nano/nanorc if they're not already there - while read inc; do + while read -r inc; do if ! grep -q "$inc" "${NANORC_FILE}"; then - echo "$inc" >> $NANORC_FILE + echo "$inc" >> "$NANORC_FILE" fi done < ~/.nano/nanorc }