Skip to content

Commit

Permalink
feat: know script path
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Nov 27, 2023
1 parent f697197 commit 854a41b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frb_internal
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env bash
cd tools/frb_internal && exec dart run flutter_rust_bridge_internal "$@"
SCRIPT=$(readlink -f "$0")
SCRIPT_PATH=$(dirname "$SCRIPT")
cd "$SCRIPT_PATH"/tools/frb_internal && exec dart run flutter_rust_bridge_internal "$@"

0 comments on commit 854a41b

Please sign in to comment.