darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Passing Argument to a bash script #305

Closed lamyergeier closed 3 years ago

lamyergeier commented 3 years ago

I can do mpv %s, but I want to run it inside bash script as I want to do some processing. This is basic script:

$cat Mpv.sh

#!/usr/bin/env bash
Url="${1}"
mpv "${Url}"

I tested that this script is working by doing "echo something from inside a script to a file". But ${1}, the first argument is not being passed to Url

What I can understand is that %s is not getting passed as argument to the script? But why is that?

Any suggestions?