Skip to content

Commit 5ad6a10

Browse files
authored
Merge pull request #12 from davidhcefx/install-script
enh(install): Use defined constant as path
2 parents 9d77a6b + 963dfb2 commit 5ad6a10

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)