Closed roachsinai closed 11 months ago
I'm guessing the {}
from find
is somehow confusing the parser (since actions support arguments with {0}
, {1}
, etc). Can you try with something like the following:
find {{@@ _dotfile_abs_dst @@}} -iname '*.dotdropbak' -print0 | xargs -0 rm
Also the backup files can be disabled by setting backup to false
in the config.
Thanks for your quick reply.
find {{@@ _dotfile_abs_dst @@}} -iname '*.dotdropbak' -print0 | xargs -0 rm
did works.
I just wanna remove one or two dotfile's backup, like mpv
will make warning when found these backup files under scripts
folder.
Dotdrop version: v1.13.2 Using dotdrop: AUR archlinux
Describe the bug
Run post actions get error.
Steps to Reproduce
Add below action to config.yaml
When run dotdrop install got below error:
What's more, change action command to
remove-backups: find {{@@ _dotfile_abs_dst @@}} -iname '*.dotdropbak' -delete ;
works well.