Don't run sed if no metadata files are found

This commit is contained in:
Nathaniel van Diepen 2023-11-28 16:45:06 -07:00 committed by GitHub
parent fbd6f6f16a
commit 2f208b01d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ function unpack(){
# marks all as unsynced so that they are not deleted # marks all as unsynced so that they are not deleted
function fixsync(){ 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(){ function install_proxyservice(){