Commit 2d923729 authored by Ralf Jung's avatar Ralf Jung

debug

parent cd4d129a
Pipeline #4743 failed with stage
in 1 minute and 1 second
......@@ -51,11 +51,11 @@ while (( "$#" )); do # while there are arguments left
VERSION="$1" ; shift
# Check if the pin is already set
PIN=$(opam pin list | (egrep "^$PACKAGE[. ]" || true))
read -a PIN <<< $(opam pin list | (egrep "^$PACKAGE[. ]")
echo "Detected pin: $PIN"
echo "$PIN" | cut -f 2
echo "$PIN" | cut -f 3
if [[ "$(echo "$PIN" | cut -f 2)" == "$KIND" && "$(echo "$PIN" | cut -f 3)" == "$VERSION" ]]; then
echo "${PIN[1]}"
echo "${PIN[2]}"
if [[ "${PIN[1]}" == "$KIND" && "${PIN[2]}" == "$VERSION" ]]; then
echo "[opam-ci] $PACKAGE already $KIND-pinned to $VERSION"
else
echo "[opam-ci] $KIND-pinning $PACKAGE to $VERSION"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment