baro-ai 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/baro +12 -1
- package/package.json +1 -1
package/bin/baro
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
# Wrapper script that finds and runs the baro native binary.
|
|
3
3
|
# The native binary is downloaded by postinstall.js as baro-native.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Resolve symlinks to find the real script location
|
|
6
|
+
SELF="$0"
|
|
7
|
+
while [ -L "$SELF" ]; do
|
|
8
|
+
DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
9
|
+
SELF="$(readlink "$SELF")"
|
|
10
|
+
case "$SELF" in
|
|
11
|
+
/*) ;;
|
|
12
|
+
*) SELF="$DIR/$SELF" ;;
|
|
13
|
+
esac
|
|
14
|
+
done
|
|
15
|
+
SCRIPT_DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
16
|
+
|
|
6
17
|
NATIVE="$SCRIPT_DIR/baro-native"
|
|
7
18
|
|
|
8
19
|
if [ ! -f "$NATIVE" ]; then
|