More checks

This commit is contained in:
Tiago Almeida 2019-11-25 20:01:23 +00:00
parent ed33f0cd0d
commit b53c091ed0
4 changed files with 7 additions and 5 deletions

View File

@ -3,9 +3,8 @@
# minimal = sh
os: linux
language: minimal
dist: bionic
language: minimal
git:
depth: 3
@ -18,8 +17,8 @@ branches:
before_install:
# Add unstable repos for the last version of nano
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse"
# - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse"
- sudo apt-get update -qq -y
- sudo apt-get install -qq -y shellcheck nano_4.5
- sudo apt-get install -qq -y shellcheck
script: ./tests.sh

View File

@ -160,7 +160,7 @@ f_install(){
end="# END"
theme="${G_DIR}/themes/${G_THEME}/"
if [ ! cd "$HOME" ]; then
if cd "$HOME"; then
echo "Error: Cannot open or access ${HOME} directory."
exit 1
fi

View File

@ -4,3 +4,5 @@
nano --version
shellcheck install.sh && exit 1
exit 0

View File

@ -12,3 +12,4 @@
0. maybe begin with version system 1.0.0
0. make a function for error output/echo
0. make a library for functions (it is necessary #! ?)
0. check the latest version of nno in travisCi