$OpenBSD: patch-bin_idea_sh,v 1.2 2019/10/19 09:39:01 rsadowski Exp $

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

Index: bin/idea.sh
--- bin/idea.sh.orig
+++ bin/idea.sh
@@ -180,7 +180,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
