From fa90586ab1c5ccfa1e5a2e7c8c018eb613bfeb52 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Wed, 29 Nov 2023 13:54:32 -0700 Subject: [PATCH] Don't error if there are no metadata files --- package/rmfakecloud-proxy/rmfakecloudctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/rmfakecloud-proxy/rmfakecloudctl b/package/rmfakecloud-proxy/rmfakecloudctl index deff1f18d..c530f3589 100644 --- a/package/rmfakecloud-proxy/rmfakecloudctl +++ b/package/rmfakecloud-proxy/rmfakecloudctl @@ -75,7 +75,7 @@ disconnect-cloud() { # Mark all files as not synced grep sync "$xochitl_data_dir"/*.metadata -l \ - | xargs sed -i 's/synced\": true/synced\": false/' + | xargs -r sed -i 's/synced\": true/synced\": false/' # Disconnect from cloud sed -i '/^devicetoken=/d' "$xochitl_conf_path"