Skip to content

Commit 5bb8a18

Browse files
authored
Merge pull request #14 from Kitware/linux_tauri
fix: Adding graceful tauri launch for linux
2 parents de81a5f + 0a1a05c commit 5bb8a18

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
2-
rootdir=`dirname $0`
3-
rootdir=`cd $rootdir && pwd`
2+
basedir=$(cd "$(dirname "$0")/../lib" && pwd)
43

5-
$rootdir/server/server $@
4+
if [ -d "$basedir/quickview" ]; then
5+
rootdir="$basedir/quickview"
6+
elif [ -d "$basedir/quick-view" ]; then
7+
rootdir="$basedir/quick-view"
8+
else
9+
echo "Error: Could not find quickview or quick-view directory in $basedir" >&2
10+
exit 1
11+
fi
12+
13+
"$rootdir/server/server" "$@"

0 commit comments

Comments
 (0)