Commit 140a6f0a authored by Ralf Jung's avatar Ralf Jung

ignore grep failures

parent edc8e522
Pipeline #4737 canceled with stage
in 11 seconds
......@@ -51,7 +51,7 @@ while (( "$#" )); do # while there are arguments left
VERSION="$1" ; shift
# Check if the pin is already set
PIN=$(opam pin list | egrep "^$PACKAGE[. ]")
PIN=$(opam pin list | (egrep "^$PACKAGE[. ]" || true))
if [[ "$(echo "$PIN" | cut -d ' ' -f 2)" == "$KIND" && "$(echo "$PIN" | cut -d ' ' -f 3)" == "$VERSION" ]]; then
echo "[opam-ci] $PACKAGE already $KIND-pinned to $VERSION"
else
......
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