Skip to content
Snippets Groups Projects
Commit 140a6f0a authored by Ralf Jung's avatar Ralf Jung
Browse files

ignore grep failures

parent edc8e522
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment