From 2ede01cfc95a8191eacd3ee8d3210a2a1c43c0d6 Mon Sep 17 00:00:00 2001 From: Geoffrey McClinsey Date: Mon, 3 Apr 2017 21:55:50 -0400 Subject: [PATCH] Update install.sh --- install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6cd3497..aae7738 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ -#!/bin/sh +#!/usr/bin/env bash function _fetch_sources() { - wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip + wget -O /tmp/nanorc.zip https://github.com/gmcclins/nanorc/archive/master.zip if [ ! -d ~/.nano/ ] then mkdir ~/.nano/ @@ -10,8 +10,7 @@ function _fetch_sources() { cd ~/.nano/ unzip -o "/tmp/nanorc.zip" - mv nanorc-master/* ./ - rm -rf nanorc-master + mv nanorc-master/ ~/.nano/nanorc/ rm /tmp/nanorc.zip } @@ -21,12 +20,12 @@ function _update_nanorc() { touch ~/.nanorc fi - # add all includes from ~/.nano/nanorc if they're not already there + # add all includes from ~/.nano/nanorc/nanorc if they're not already there while read inc; do if ! grep -q "$inc" "${NANORC_FILE}"; then echo "$inc" >> $NANORC_FILE fi - done < ~/.nano/nanorc + done < ~/.nano/nanorc/nanorc } function _update_nanorc_lite() {