Jump to content

Execute "cd some_dir" Allways got "No such file or directory" in my workflow.


Recommended Posts

As the title i create a workflow for personal useage. 

 

The error workflow action like this.

 

image.png.d942b95152fcd7eba76d62668a603584.png

 

Allways got error like blow.

 

image.png.a4c6d5923c222ac6a9c1fd32a27506fc.png 

 

I don't know way? 😱

 

is there anybody know.

Link to comment

When asking for help with a Workflow, please upload it somewhere as it’s otherwise difficult to give specific advice. Debugging can already be hard with access to the code, without it it’s even more complicated.


However you’re passing the folder’s name, you’re passing it with a newline at the end. That is why the debugger mentions:


'/Volumes/privite/image-download/
'


Instead of


'/Volumes/privite/image-download/'


You have to fix that, but I can’t be specific on the most efficient solution without knowing how the Workflow is built.


As an extra tip, avoid with input as {query}; you should be using with input as argv. The code would be cd "${1}".

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...