Parcourir la source

Improve CI script

 + It's a bad practice to assign something to $1 according to the bash manual
Leo il y a 8 ans
Parent
commit
1a1ab65cf5
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      gitlab-ci.sh

+ 3 - 2
gitlab-ci.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # OCaml version is assuming to be set (for instance as system compiler) if
 # nothing is passed
@@ -8,7 +8,8 @@
 # Use -y with evry opam command
 export OPAMYES=true
 # Installing opam
-opam init --comp="${1:=system}"
+comp=${1:-system}
+opam init --comp="${comp}"
 eval `opam config env`
 
 # Versions