From 2f208b01d6b6eabb1348a9cfe04310fe28ad0b93 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Tue, 28 Nov 2023 16:45:06 -0700 Subject: [PATCH] Don't run sed if no metadata files are found --- scripts/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 8e732d5..6b39ced 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -19,7 +19,7 @@ function unpack(){ # marks all as unsynced so that they are not deleted function fixsync(){ - grep sync ~/.local/share/remarkable/xochitl/*.metadata -l | xargs sed -i 's/synced\": true/synced\": false/' + grep sync ~/.local/share/remarkable/xochitl/*.metadata -l | xargs -r sed -i 's/synced\": true/synced\": false/' } function install_proxyservice(){