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

How to use filename substitutions in scripts? #102

Open
jarbus opened this issue Jul 8, 2020 · 1 comment
Open

How to use filename substitutions in scripts? #102

jarbus opened this issue Jul 8, 2020 · 1 comment

Comments

@jarbus
Copy link

jarbus commented Jul 8, 2020

I made a new quickaction in .config/hunter/actions:

mv!.sh:

#!/bin/sh
mv $s $n

Which should work using the filename substitutions according to the README, but it doesn't seem like this is a feature. The variables in the script are never set, so the script does nothing. Is there a way to access $s and $n from a script?

@sabitm
Copy link

sabitm commented Sep 14, 2020

weirdly, it works with "$@" for me. but yeah, neither $n nor $ns work

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