Skip to content

Commit b221a5f

Browse files
save/restore original path
1 parent 0794cd3 commit b221a5f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/update-android.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
ORIGINAL_DIR=$(cd "$(dirname "$0")" && pwd)
45
cd $(dirname "$0")/../packages/core/android
56
file='build.gradle'
67
content=$(cat $file)
@@ -27,7 +28,8 @@ set-version)
2728
echo "$newContent" >$file
2829

2930
# Update replay-stubs to match
30-
$(dirname "$0")/update-android-stubs.sh set-version $2
31+
cd $ORIGINAL_DIR
32+
./update-android-stubs.sh set-version $2
3133
;;
3234
*)
3335
echo "Unknown argument $1"

0 commit comments

Comments
 (0)