Skip to content

Commit 3479bf5

Browse files
committed
OpenGrok help uses bashism
On systems where /bin/sh is dash (like Debian), invoking OpenGrok help will print the following error message along with its output: ./OpenGrok: 930: [: unexpected operator Also, the --detailed option won't print all the detailed help. This patch replaces a bashism (the == operator) with standard shell syntax (the = operator).
1 parent bfaf601 commit 3479bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenGrok

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ UpdateDescriptionCache()
927927

928928
OpenGrokUsage()
929929
{
930-
[ "$1" == "--detailed" ] && helpargs=$1
930+
[ "$1" = "--detailed" ] && helpargs=$1
931931
echo "Options for opengrok.jar:" 1>&2
932932
${DO} ${JAVA} ${JAVA_OPTS} -jar "${OPENGROK_JAR}" '-?' $helpargs
933933
}

0 commit comments

Comments
 (0)