diff --git a/.travis.yml b/.travis.yml index 37387b620..0ea8218a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,7 @@ matrix: python: null node_js: "lts/*" - os: linux + language: generic env: TESTENV=shellcheck services: docker fast_finish: true diff --git a/misc/userscripts/rss b/misc/userscripts/rss index 6680a259e..f8feebee7 100755 --- a/misc/userscripts/rss +++ b/misc/userscripts/rss @@ -57,7 +57,7 @@ notice () { # Update a database of a feed and open new URLs read_items () { - cd read_urls || return + cd read_urls || return 1 feed_file="$(echo "$1" | tr -d /)" feed_temp_file="$(mktemp "$feed_file.tmp.XXXXXXXXXX")" feed_new_items="$(mktemp "$feed_file.new.XXXXXXXXXX")" @@ -85,7 +85,7 @@ if [ ! -d "$config_dir/read_urls" ]; then mkdir -p "$config_dir/read_urls" fi -cd "$config_dir" || exit +cd "$config_dir" || exit 1 if [ $# != 0 ]; then for arg in "$@"; do diff --git a/scripts/dev/ci/travis_run.sh b/scripts/dev/ci/travis_run.sh index 74b8ae63f..c0f59dc1a 100644 --- a/scripts/dev/ci/travis_run.sh +++ b/scripts/dev/ci/travis_run.sh @@ -22,7 +22,7 @@ elif [[ $TESTENV == shellcheck ]]; then IFS=" " read -r -a scripts <<< "$dev_scripts $userscripts" docker run \ -v "$PWD:/outside" \ - -w /outside \ + -w /outside \ koalaman/shellcheck:latest "${scripts[@]}" else args=()