diff --git a/.travis.yml b/.travis.yml index 6200bc8..f3b071e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/install.sh b/install.sh index d3e763b..abc4827 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/tests.sh b/tests.sh index c170557..1626f9b 100755 --- a/tests.sh +++ b/tests.sh @@ -4,3 +4,5 @@ nano --version shellcheck install.sh && exit 1 + +exit 0 diff --git a/todo.md b/todo.md index c86ed69..ee223e8 100644 --- a/todo.md +++ b/todo.md @@ -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