From 92dc476a6e0d22285441a24734c32f05714435d8 Mon Sep 17 00:00:00 2001 From: Vytautas Gimbutas Date: Sun, 19 Jan 2020 16:53:34 +0800 Subject: [PATCH] Proper quoting for argument passed by xargs --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f9d3bc6..47109ed4 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ In code: #!/bin/bash rome download --platform iOS # download missing frameworks (or copy from local cache) carthage bootstrap --platform iOS --cache-builds # build dependencies missing a .version file or that where not found in the cache -rome list --missing --platform iOS | awk '{print $1}' | xargs rome upload --platform iOS # upload what is missing +rome list --missing --platform iOS | awk '{print $1}' | xargs -I {} rome upload "{}" --platform iOS # upload what is missing ``` #### List workflow @@ -175,8 +175,8 @@ In code: ```sh #!/bin/bash rome download --platform iOS # download missing frameworks (or copy from local cache) -rome list --missing --platform iOS | awk '{print $1}' | xargs carthage bootstrap --platform iOS --cache-builds # list what is missing and update/build if needed -rome list --missing --platform iOS | awk '{print $1}' | xargs rome upload --platform iOS # upload what is missing +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 +rome list --missing --platform iOS | awk '{print $1}' | xargs -I {} rome upload "{}" --platform iOS # upload what is missing ``` 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 Forwarding a list of missing frameworks to Carthage for building: ```bash -$ rome list --missing --platform ios | awk '{print $1}' | xargs carthage build --platform ios +$ rome list --missing --platform ios | awk '{print $1}' | xargs -I {} carthage build "{}" --platform ios *** xcodebuild output can be found in ... ```