Skip to content

Commit 496f0cc

Browse files
vytautasgimbutastmspzz
authored andcommitted
Proper quoting for argument passed by xargs (#212)
1 parent 07ff37e commit 496f0cc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ In code:
162162
#!/bin/bash
163163
rome download --platform iOS # download missing frameworks (or copy from local cache)
164164
carthage bootstrap --platform iOS --cache-builds # build dependencies missing a .version file or that where not found in the cache
165-
rome list --missing --platform iOS | awk '{print $1}' | xargs rome upload --platform iOS # upload what is missing
165+
rome list --missing --platform iOS | awk '{print $1}' | xargs -I {} rome upload "{}" --platform iOS # upload what is missing
166166
```
167167

168168
#### List workflow
@@ -175,8 +175,8 @@ In code:
175175
```sh
176176
#!/bin/bash
177177
rome download --platform iOS # download missing frameworks (or copy from local cache)
178-
rome list --missing --platform iOS | awk '{print $1}' | xargs carthage bootstrap --platform iOS --cache-builds # list what is missing and update/build if needed
179-
rome list --missing --platform iOS | awk '{print $1}' | xargs rome upload --platform iOS # upload what is missing
178+
rome list --missing --platform iOS | awk '{print $1}' | xargs -I {} carthage bootstrap "{}" --platform iOS --cache-builds # list what is missing and update/build if needed
179+
rome list --missing --platform iOS | awk '{print $1}' | xargs -I {} rome upload "{}" --platform iOS # upload what is missing
180180
```
181181

182182
If no frameworks are missing, the `awk` pipe to `carthage` will fail and the rest of the command will not be executed. This avoids rebuilding all dependencies or uploading artifacts already present in the cache.
@@ -752,7 +752,7 @@ ResearchKit 1.4.1 : -tvOS -watchOS
752752
Forwarding a list of missing frameworks to Carthage for building:
753753

754754
```bash
755-
$ rome list --missing --platform ios | awk '{print $1}' | xargs carthage build --platform ios
755+
$ rome list --missing --platform ios | awk '{print $1}' | xargs -I {} carthage build "{}" --platform ios
756756
*** xcodebuild output can be found in ...
757757
```
758758

0 commit comments

Comments
 (0)