Replies: 1 comment 1 reply
-
|
With the current method of using sh, which is not a workaround, you can construct any kind of test as a precondition: directory exists, directory not exists, file exists, file not exists ... anything which the shell can do (which is everything). Now consider the suggestion, which can do one thing, and one thing only. Not ideal. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Existing workaround
Method #1
The existing workaround would be shortened to:
Note
requiresis replaced bydir.requiredpreconditionscheck, error message, and program aborting is replaced bydir.requiredUsing
diras a simple string would continue to work for existing Taskfilesdir.requireddefaults to falseMethod #2
The existing workaround would be shortened to:
I prefer method #2, as it's more compact.
Beta Was this translation helpful? Give feedback.
All reactions