-
Again, following babashka book and playing with tasks, noticed a very weird thing:
{:tasks
{clean (shell "rm -rf .github/workflows/*")
clean2 (shell "rm -rf .github/workflows")}}
Maybe shell has issue with wildcard? related versionsbabashka v1.3.176 Clojure CLI version 1.11.1.1257 java --version platform |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@sg-qwt I converted your issue to a Q/A discussion over here, I think the Discussions part is more suited for this.
You can accomplish the above with: {:tasks
{:requires ([babashka.fs :as fs])
clean (fs/delete-tree ".github/workflows") If you want wildcards etc to work, you have to invoke bash manually like this: (shell "bash -c 'rm -rf .github/workflows/*'") |
Beta Was this translation helpful? Give feedback.
@sg-qwt I converted your issue to a Q/A discussion over here, I think the Discussions part is more suited for this.
shell
shells out to an external program, but it does not actually start a bash/zsh or whatever shell. As such it doesn't understand bash syntax.You can accomplish the above with:
If you want wildcards etc to work, you have to invoke bash manually like this: