Skip to content

Commit 6bb2906

Browse files
c-dilkstongtongcao
authored andcommitted
fix: run-clara doesn't work on macos (#1080)
fixes #1079
1 parent b315bae commit 6bb2906

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bin/run-clara

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jlab.logging.SplitLogManag
9595
if $java_quiet; then
9696
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=$CLAS12DIR/etc/logging/logging.properties"
9797
else
98-
case ${java_log_level^^} in
98+
java_log_level_upcase=$(echo $java_log_level | tr '[:lower:]' '[:upper:]')
99+
case ${java_log_level_upcase} in
99100
SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|ALL|OFF)
100-
JAVA_OPTS="$JAVA_OPTS -D.level=${java_log_level^^}"
101+
JAVA_OPTS="$JAVA_OPTS -D.level=${java_log_level_upcase}"
101102
;;
102103
*)
103104
error "unknown Java log level '$java_log_level'"

0 commit comments

Comments
 (0)