From 53917a1f0fee2c4ac94220aace3a12936ccfc9b7 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Sat, 20 Jun 2020 11:12:53 +0200 Subject: [PATCH] Fix shellcheck warning and update Travis config --- .travis.yml | 8 +------- google-font-download | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fb2d61..f1125ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,2 @@ -language: c -install: - - sudo apt-get update -qq - - sudo apt-get install -q vim-common file libffi6 libgmp10 - - curl -L "http://archive.ubuntu.com/ubuntu/pool/universe/s/shellcheck/shellcheck_0.4.6-1_amd64.deb" -o "/tmp/shellcheck_0.4.6-1_amd64.deb" - - '[ "$(openssl dgst -sha256 "/tmp/shellcheck_0.4.6-1_amd64.deb" | cut -d " " -f 2)" == "95b4d2577f25ae47918bd53068a5ff42d5c34e5f884daa8dae32253044b45370" ]' - - sudo dpkg -i "/tmp/shellcheck_0.4.6-1_amd64.deb" +language: shell script: make && make test SHELL="bash -x" diff --git a/google-font-download b/google-font-download index 73edda5..82edab2 100755 --- a/google-font-download +++ b/google-font-download @@ -431,7 +431,7 @@ for family in "${families[@]}"; do # For each requested font format, download the font file and print the corresponding CSS statements. for ((uaidx=0; uaidx < ${#formats[@]}; uaidx++)); do uakey=${formats[$uaidx]} - if [ $uaidx -eq $(( ${#formats[@]} - 1 )) ]; then + if [ "$uaidx" -eq $(( ${#formats[@]} - 1 )) ]; then terminator=";" else terminator=","