Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove useless checks, formatting #232

Merged
merged 1 commit into from
Jun 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ fi

_fetch_sources(){
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
if [ ! -d ~/.nano/ ]
then
mkdir ~/.nano/
fi
mkdir -p ~/.nano/

cd ~/.nano/ || exit
unzip -o "/tmp/nanorc.zip"
Expand All @@ -21,11 +18,8 @@ _fetch_sources(){
}

_update_nanorc(){
if [ ! -f ~/.nanorc ]
then
touch ~/.nanorc
fi

touch ~/.nanorc

# add all includes from ~/.nano/nanorc if they're not already there
while read -r inc; do
if ! grep -q "$inc" "${NANORC_FILE}"; then
Expand All @@ -42,10 +36,10 @@ NANORC_FILE=~/.nanorc

case "$1" in
-l|--lite)
UPDATE_LITE=1;;
UPDATE_LITE=1;;
-h|--help)
echo "Install script for nanorc syntax highlights"
echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"
echo "Install script for nanorc syntax highlights"
echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"
;;
esac

Expand Down