mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
shellcheck fixes
This commit is contained in:
parent
dbb70b17e7
commit
08cfd55216
|
@ -7,7 +7,7 @@ _fetch_sources(){
|
||||||
mkdir ~/.nano/
|
mkdir ~/.nano/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ~/.nano/
|
cd ~/.nano/ || exit
|
||||||
|
|
||||||
unzip -o "/tmp/nanorc.zip"
|
unzip -o "/tmp/nanorc.zip"
|
||||||
mv nanorc-master/* ./
|
mv nanorc-master/* ./
|
||||||
|
@ -22,9 +22,9 @@ _update_nanorc(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# add all includes from ~/.nano/nanorc if they're not already there
|
# 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
|
if ! grep -q "$inc" "${NANORC_FILE}"; then
|
||||||
echo "$inc" >> $NANORC_FILE
|
echo "$inc" >> "$NANORC_FILE"
|
||||||
fi
|
fi
|
||||||
done < ~/.nano/nanorc
|
done < ~/.nano/nanorc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user