We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b648b commit a391533Copy full SHA for a391533
src/main/resources/osx_launcher_wrapper.sh
@@ -20,12 +20,15 @@ else
20
export ${K_LIBRARY_PATH}=. ${K_FRAMEWORK_PATH}=.
21
fi
22
23
-# check if 'cataclysm-tiles' or 'cataclysm-bn-tiles' exists, and run the appropriate one
24
-if [[ -f ./cataclysm-tiles ]]; then
25
- EXECUTABLE="./cataclysm-tiles"
26
-elif [[ -f ./cataclysm-bn-tiles ]]; then
27
- EXECUTABLE="./cataclysm-bn-tiles"
28
-else
+# find the first matching executable that starts with "cataclysm-" and is executable
+for candidate in ./cataclysm-*; do
+ if [[ -x "$candidate" && ! -d "$candidate" ]]; then
+ EXECUTABLE="$candidate"
+ break
+ fi
29
+done
30
+
31
+if [[ -z "$EXECUTABLE" ]]; then
32
echo "No valid executable found!"
33
exit 1
34
0 commit comments