Skip to content

Commit 854a41b

Browse files
committed
feat: know script path
1 parent f697197 commit 854a41b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frb_internal

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/usr/bin/env bash
2-
cd tools/frb_internal && exec dart run flutter_rust_bridge_internal "$@"
2+
SCRIPT=$(readlink -f "$0")
3+
SCRIPT_PATH=$(dirname "$SCRIPT")
4+
cd "$SCRIPT_PATH"/tools/frb_internal && exec dart run flutter_rust_bridge_internal "$@"

0 commit comments

Comments
 (0)