$OpenBSD: patch-bin_idea_sh,v 1.1 2018/12/28 09:25:01 rsadowski Exp $

Avoid "egrep: -: No such file or directory" issue

Index: bin/idea.sh
--- bin/idea.sh.orig
+++ bin/idea.sh
@@ -174,7 +174,7 @@ fi
 VM_OPTIONS=""
 if [ -r "$VM_OPTIONS_FILE" ]; then
   VM_OPTIONS=`"$CAT" "$VM_OPTIONS_FILE" | "$GREP" -v "^#.*"`
-  if { echo "$VM_OPTIONS" | "$GREP" -q "agentlib:yjpagent" - ; } then
+  if { echo "$VM_OPTIONS" | "$GREP" -q "agentlib:yjpagent"; } then
     if [ "$OS_TYPE" = "Linux" ]; then
       VM_OPTIONS=`echo "$VM_OPTIONS" | "$SED" -e "s|-agentlib:yjpagent\(-linux\)\?\([^=]*\)|-agentpath:$IDE_BIN_HOME/libyjpagent-linux\2.so|"`
     else
