mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 16:45:40 +01:00
commit
2833921a6e
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list
|
||||||
|
- sudo apt-get -qq update
|
||||||
|
- sudo apt-get install -y shellcheck
|
||||||
|
|
||||||
|
git:
|
||||||
|
depth: 3
|
||||||
|
|
||||||
|
script: ./shellcheck.sh
|
@ -7,7 +7,7 @@ _fetch_sources(){
|
|||||||
mkdir ~/.nano/
|
mkdir ~/.nano/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ~/.nano/
|
cd ~/.nano/ || exit
|
||||||
|
|
||||||
unzip -o "/tmp/nanorc.zip"
|
unzip -o "/tmp/nanorc.zip"
|
||||||
mv nanorc-master/* ./
|
mv nanorc-master/* ./
|
||||||
@ -22,9 +22,9 @@ _update_nanorc(){
|
|||||||
fi
|
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 inc; do
|
while read -r inc; do
|
||||||
if ! grep -q "$inc" "${NANORC_FILE}"; then
|
if ! grep -q "$inc" "${NANORC_FILE}"; then
|
||||||
echo "$inc" >> $NANORC_FILE
|
echo "$inc" >> "$NANORC_FILE"
|
||||||
fi
|
fi
|
||||||
done < ~/.nano/nanorc
|
done < ~/.nano/nanorc
|
||||||
}
|
}
|
||||||
|
4
shellcheck.sh
Executable file
4
shellcheck.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh -ev
|
||||||
|
# Shellcheck the script
|
||||||
|
|
||||||
|
shellcheck install.sh
|
Loading…
Reference in New Issue
Block a user