Merge pull request #232 from SuperSandro2000/patch-1

Remove useless checks, formatting
This commit is contained in:
Anthony Scopatz 2019-06-24 09:34:03 -04:00 committed by GitHub
commit 907b2e3261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
@ -21,10 +18,7 @@ _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
@ -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