Skip to content

Commit 9514f84

Browse files
authored
Fix a directory not able to be moved (#8053)
A framework/file could be moved twice for both '${SDK}Example` and `${SDK}ExampleSwift` quickstart. Update from `mv` to `cp` to make it able to copy more than once. #8049
1 parent 2f457c2 commit 9514f84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setup_quickstart_framework.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ if [[ ! -z "$NON_FIREBASE_SDKS" ]]; then
2828
REPO="${REPO}" NON_FIREBASE_SDKS="${NON_FIREBASE_SDKS}" "${REPO}"/scripts/build_non_firebase_sdks.sh
2929
fi
3030
if [ ! -f "Firebase/Firebase.h" ]; then
31-
mv "${HOME}"/ios_frameworks/Firebase/Firebase.h Firebase/
31+
cp "${HOME}"/ios_frameworks/Firebase/Firebase.h Firebase/
3232
fi
3333
if [ ! -f "Firebase/module.modulemap" ]; then
34-
mv "${HOME}"/ios_frameworks/Firebase/module.modulemap Firebase/
34+
cp "${HOME}"/ios_frameworks/Firebase/module.modulemap Firebase/
3535
fi
3636
for file in "$@"
3737
do
3838
if [ ! -f "Firebase/${file}" ]; then
39-
mv -n ${file} Firebase/
39+
cp -nR ${file} Firebase/
4040
fi
4141
done
4242

0 commit comments

Comments
 (0)