File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ output_directory=$2
26
26
27
27
function removeUnneededSymbols() {
28
28
arch=$1
29
- path=" $output_directory /$library .xcframework/$arch /BCSymbolMaps"
30
- cd $path
29
+ current_directory=$( pwd)
30
+
31
+ cd " $output_directory /$library .xcframework/$arch /BCSymbolMaps"
31
32
32
33
# Looking for [...]/DerivedSources/[LIBRARY-NAME]_vers.c
33
34
regex=" (\/DerivedSources\/)([a-zA-Z_]*)(_vers.c)"
@@ -44,7 +45,7 @@ function removeUnneededSymbols() {
44
45
fi
45
46
done
46
47
47
- cd / > /dev/null
48
+ cd " $current_directory "
48
49
}
49
50
50
51
removeUnneededSymbols " ios-arm64"
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ if ! [[ -d "$dependency_directory" ]]; then
34
34
git clone $dependency_url $dependency_directory
35
35
fi
36
36
37
- cd $dependency_directory
37
+ current_directory=$( pwd)
38
+
39
+ cd " $dependency_directory "
38
40
39
41
ensure_clean_git
40
42
@@ -43,7 +45,7 @@ git checkout $version
43
45
44
46
ensure_clean_git
45
47
46
- cd -
48
+ cd " $current_directory "
47
49
48
50
echo " → Copying source files"
49
51
rm -rf $output_directory
You can’t perform that action at this time.
0 commit comments