From 140c5f657cab6a8ddcf4e219282a0c144addd44c Mon Sep 17 00:00:00 2001 From: Benjamin Eckel Date: Wed, 29 Mar 2017 11:31:05 -0700 Subject: [PATCH] Make run-ios --device example copy-pastable Summary: This changes the single quotes to double quotes so this command can be copy-pasted. If a user copy pastes the run-on-device example in bash they will be presented with a confusing prompt because bash expects another terminating single quote. ``` ~ben (master *) ~/code/transit: react-native run-ios --device 'Max's iPhone' > > ``` It seems minor but this could be just confusing enough to frustrate a beginner or someone not familiar with bash. This can be tested by running: ``` react-native run-ios --help ``` and verifying that the "run on device" example is changed: ```diff - react-native run-ios --device 'Max's iPhone' + react-native run-ios --device "Max's iPhone" ``` Closes https://github.com/facebook/react-native/pull/13145 Differential Revision: D4776305 Pulled By: hramos fbshipit-source-id: 9500551bfc106cd1687468f7ecc4c91089e1f703 --- local-cli/runIOS/runIOS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index e890d643b..8463687bd 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -222,7 +222,7 @@ module.exports = { }, { desc: "Run on a connected device, e.g. Max's iPhone", - cmd: "react-native run-ios --device 'Max's iPhone'", + cmd: 'react-native run-ios --device "Max\'s iPhone"', }, ], options: [{