Skip to content

Commit 961438a

Browse files
authored
Do not show splash screen when options are present
This simplifies the logic and makes more sense overall.
1 parent 3f18eab commit 961438a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: build/linux/dist/arduino

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ fi
2727
# Collect options to java in an array, to properly handle whitespace in options
2828
JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")
2929

30-
if [[ "$@" != *"--upload"* && "$@" != *"--verify"* && "$@" != *"--get-pref"* && "$@" != *"--save-prefs"* "$@" != *"--install-boards"* && "$@" != *"--install-library"* ]] ; then
30+
# Only show the splash screen when no options are present
31+
if [[ "$@" != *"--"* ]] ; then
3132
JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
3233
fi
3334

0 commit comments

Comments
 (0)