Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cd in the bash scripts #387

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Scripts/removeUnneededSymbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ output_directory=$2

function removeUnneededSymbols() {
arch=$1
path="$output_directory/$library.xcframework/$arch/BCSymbolMaps"
cd $path
current_directory=$(pwd)

cd "$output_directory/$library.xcframework/$arch/BCSymbolMaps"

# Looking for [...]/DerivedSources/[LIBRARY-NAME]_vers.c
regex="(\/DerivedSources\/)([a-zA-Z_]*)(_vers.c)"
Expand All @@ -44,7 +45,7 @@ function removeUnneededSymbols() {
fi
done

cd / >/dev/null
cd "$current_directory"
}

removeUnneededSymbols "ios-arm64"
Expand Down
6 changes: 4 additions & 2 deletions Scripts/updateDependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ if ! [[ -d "$dependency_directory" ]]; then
git clone $dependency_url $dependency_directory
fi

cd $dependency_directory
current_directory=$(pwd)

cd "$dependency_directory"

ensure_clean_git

Expand All @@ -43,7 +45,7 @@ git checkout $version

ensure_clean_git

cd -
cd "$current_directory"

echo "→ Copying source files"
rm -rf $output_directory
Expand Down
Loading