Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <[email protected]>
  • Loading branch information
holgerfriedrich committed Aug 25, 2024
1 parent ee6c4e1 commit 4bf6ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/java-jre.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ liberica_install_apt() {
elif dpkg -s $pkgname &> /dev/null; then
echo -n "$(timestamp) [openHABian] Reconfiguring BellSoft Liberica JDK... "
if cond_redirect dpkg-reconfigure $pkgname; then echo "OK"; else echo "FAILED"; return 1; fi
update-alternatives --set java $(ls -d /usr/lib/jvm/bellsoft-java21-lite-* |head -n1)/bin/java
# shellcheck disable=SC2012
update-alternatives --set java "$(ls -d /usr/lib/jvm/bellsoft-java21-lite-* |head -n1)"/bin/java
fi
}

Expand Down

0 comments on commit 4bf6ce6

Please sign in to comment.