Skip to content
Discussion options

You must be logged in to vote

Hi, thank you for your question! :)

{{variables}} only work when they are used in the shell comand text, i.e. in your case the shell command text is /bin/bash script.sh. The Shell commands plugin does not read the script.sh file at all, it's only read by Bash, and so Bash does not know {{clipboard}} or {{file_path:relative}} variables, which are specific to the Shell commands plugin.

What you can do to solve this, is to pass the values of these variables as arguments to your script file. This is how it's done in Bash:

Your shell command: /bin/bash script.sh {{clipboard}} {{file_path:relative}}

An example content of script.sh:

echo $1 # Prints the value of {{clipboard}}, because {{clipboar…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imed-ghomari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants