mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Merge pull request #143 from SamuelEnglard/fix-syntax-issues
Fix syntax issues
This commit is contained in:
commit
680dd50c7f
1 changed files with 7 additions and 6 deletions
13
install.sh
13
install.sh
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
function _fetch_sources() {
|
||||
_fetch_sources(){
|
||||
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
|
||||
if [ ! -d ~/.nano/ ]
|
||||
then
|
||||
|
|
@ -15,7 +15,7 @@ function _fetch_sources() {
|
|||
rm /tmp/nanorc.zip
|
||||
}
|
||||
|
||||
function _update_nanorc() {
|
||||
_update_nanorc(){
|
||||
if [ ! -f ~/.nanorc ]
|
||||
then
|
||||
touch ~/.nanorc
|
||||
|
|
@ -29,7 +29,7 @@ function _update_nanorc() {
|
|||
done < ~/.nano/nanorc
|
||||
}
|
||||
|
||||
function _update_nanorc_lite() {
|
||||
_update_nanorc_lite(){
|
||||
sed -i '/include "\/usr\/share\/nano\/\*\.nanorc"/i include "~\/.nano\/*.nanorc"' "${NANORC_FILE}"
|
||||
}
|
||||
|
||||
|
|
@ -45,8 +45,9 @@ case "$1" in
|
|||
esac
|
||||
|
||||
_fetch_sources;
|
||||
if [[ $UPDATE_LITE ]]; then
|
||||
_update_nanorc_lite;
|
||||
if [ $UPDATE_LITE ];
|
||||
then
|
||||
_update_nanorc_lite
|
||||
else
|
||||
_update_nanorc;
|
||||
_update_nanorc
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue