Commit 3db5843c authored by Andy Wilkinson's avatar Andy Wilkinson

Polish "Find .conf file next to symlink to jar that's using the launch script"

Closes gh-8988
parent 56a58880
......@@ -200,7 +200,6 @@ public class SysVinitLaunchScriptIT {
doLaunch("launch-with-double-link-single-java-opt.sh");
}
@Test
public void launchWithMultipleJavaOpts() throws Exception {
doLaunch("launch-with-multiple-java-opts.sh");
......
......@@ -35,8 +35,8 @@ while [[ -L "$jarfile" ]]; do
if [[ "$jarfile" =~ init\.d ]]; then
init_script=$(basename "$jarfile")
else
# while looping check if their is any configuration file
configfile="${jarfile%.*}.conf"
# shellcheck source=/dev/null
[[ -r ${configfile} ]] && source "${configfile}"
fi
jarfile=$(readlink "$jarfile")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment