From a3c02b07a6fa4037a09c0debfcf7e9467536e61b Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Sat, 2 Dec 2017 16:27:55 +0100 Subject: [PATCH] Ignore errors for `rm` command when bundling status-go for iOS. Right after `git clone`, there is no `Statusgo.framework` in `react-native-status/ios/RCTStatus/` directory. Because of that, `scripts/bundle-status-go.sh` fails and stops on the `rm` operation. Since it is a perfectly valid scenario, let's ignore this error. Signed-off-by: Oskar Thoren --- scripts/bundle-status-go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bundle-status-go.sh b/scripts/bundle-status-go.sh index 4abaeb8051..030981c9cc 100755 --- a/scripts/bundle-status-go.sh +++ b/scripts/bundle-status-go.sh @@ -28,7 +28,7 @@ cd .. # Instead we are going to manually overwrite it. # For Xcode to pick up the new version, remove the whole framework first: -rm -r status-react/modules/react-native-status/ios/RCTStatus/Statusgo.framework/ +rm -r status-react/modules/react-native-status/ios/RCTStatus/Statusgo.framework/ || true # Then copy over framework: cp -R status-go/build/bin/statusgo-ios-9.3-framework/Statusgo.framework status-react/modules/react-native-status/ios/RCTStatus/Statusgo.framework