mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Remove useless checks, formatting
This commit is contained in:
parent
b34a9dc2de
commit
18d96c1ab8
|
@ -8,10 +8,7 @@ fi
|
||||||
|
|
||||||
_fetch_sources(){
|
_fetch_sources(){
|
||||||
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
|
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
|
||||||
if [ ! -d ~/.nano/ ]
|
mkdir -p ~/.nano/
|
||||||
then
|
|
||||||
mkdir ~/.nano/
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ~/.nano/ || exit
|
cd ~/.nano/ || exit
|
||||||
unzip -o "/tmp/nanorc.zip"
|
unzip -o "/tmp/nanorc.zip"
|
||||||
|
@ -21,10 +18,7 @@ _fetch_sources(){
|
||||||
}
|
}
|
||||||
|
|
||||||
_update_nanorc(){
|
_update_nanorc(){
|
||||||
if [ ! -f ~/.nanorc ]
|
|
||||||
then
|
|
||||||
touch ~/.nanorc
|
touch ~/.nanorc
|
||||||
fi
|
|
||||||
|
|
||||||
# add all includes from ~/.nano/nanorc if they're not already there
|
# add all includes from ~/.nano/nanorc if they're not already there
|
||||||
while read -r inc; do
|
while read -r inc; do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user