Skip to content

Commit 876e0ee

Browse files
committed
better handling of ci env flag
1 parent 9030fa9 commit 876e0ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FabricExample/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require Pod::Executable.execute_command('node', ['-p',
66
)', __dir__]).strip
77

88
# Use RNRepo in CI builds
9-
if ENV['CI'] == 'true'
9+
if %w[1 true].include?(ENV['CI'].to_s.downcase)
1010
require Pod::Executable.execute_command('node', ['-p',
1111
'require.resolve(
1212
"@rnrepo/build-tools/cocoapods-plugin/lib/plugin.rb",
@@ -39,7 +39,7 @@ target 'FabricExample' do
3939
)
4040

4141
post_install do |installer|
42-
if ENV['CI'] == 'true'
42+
if %w[1 true].include?(ENV['CI'].to_s.downcase)
4343
rnrepo_post_install(installer)
4444
end
4545
react_native_post_install(

0 commit comments

Comments
 (0)