Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try-until plugin - No such file or directory #19

Open
fluopotter opened this issue Nov 25, 2020 · 2 comments
Open

try-until plugin - No such file or directory #19

fluopotter opened this issue Nov 25, 2020 · 2 comments

Comments

@fluopotter
Copy link

Hi,

With Nixy try-until plugin, when I try a command with some arguments,I get the following error :
/tmp/188-620065-myserver.lan-command-try-until.sh: line 18: echo foo: command not found

In this example, I just put echo toto in command field.


I see in command-try-until file :

invoke_command() {
        #eval "$@"
        "$@"
}

I extracted this script and uncommented eval "$@" (and comment "$@") and it works.

Should I make the change for my own environment or is it an oversight? Because without eval this plugin is very restrictive.

@ahonor
Copy link
Contributor

ahonor commented Nov 25, 2020

The plugin should accept a boolean configuration property to decide if it should use eval in cases where that is preferred.

@fluopotter
Copy link
Author

it will be integrated in a near release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants