grep returns exit code 1 when no match, || true prevents the script from exiting early

This commit is contained in:
Jason Nochlin 2024-01-10 07:15:15 -07:00 committed by Gunnar Morling
parent 7def69eee7
commit 7c81bfec70

View File

@ -71,9 +71,10 @@ for fork in "$@"; do
echo "+ sdk install java $version"
sdk install java $version
fi
done
done || true # grep returns exit code 1 when no match, `|| true` prevents the script from exiting early
fi
done
echo "SUCCESS"
## END - SDKMAN Setup
# Check if SMT is enabled (we want it disabled)