fix what shellcheck will find

This commit is contained in:
Geoffrey McClinsey 2017-12-28 01:29:50 -05:00
parent dbb70b17e7
commit 6a71b6f185
1 changed files with 3 additions and 3 deletions

View File

@ -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
}