Skip to content

Commit 963dfb2

Browse files
committed
enh(install): Use defined constant as path
Change "~/.nanorc" to already defined constant $NANORC_FILE
1 parent 6ca4ffa commit 963dfb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ _fetch_sources(){
1818
}
1919

2020
_update_nanorc(){
21-
touch ~/.nanorc
22-
21+
touch $NANORC_FILE
22+
2323
# add all includes from ~/.nano/nanorc if they're not already there
2424
while read -r inc; do
2525
if ! grep -q "$inc" "${NANORC_FILE}"; then
@@ -45,7 +45,7 @@ case "$1" in
4545
esac
4646

4747
_fetch_sources;
48-
if [ $UPDATE_LITE ];
48+
if [ "$UPDATE_LITE" ];
4949
then
5050
_update_nanorc_lite
5151
else

0 commit comments

Comments
 (0)