]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Travis: Don't install npm@5 when the current npm is newer.
authorXhmikosR <xhmikosr@gmail.com>
Sat, 15 Sep 2018 11:57:59 +0000 (14:57 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 15 Sep 2018 22:52:14 +0000 (01:52 +0300)
.travis.yml

index d4a73d02647cab7cee12a69da0af780e4702e645..85ad14526e3ae7fa0fd08430bf1a9689ee2dc316 100644 (file)
@@ -9,7 +9,7 @@ node_js:
   - "6"
   - "8"
 before_install:
-  - if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
+  - if [[ $(npm -v | cut -d. -f1) -lt "5" ]]; then npm install -g npm@5; fi
 install:
   - bundle install --deployment --jobs=3 --retry=3
   - npm install