I would like to run a command with an argument placed in the same directory as the shell script, from a shell script.
example:
my_installer.sh:
#!/bin/sh
sudo dpkg -i --someflags=abcd blah.deb
How do I tell my_installer.sh
where blah.deb
is ?
I have tried ./blah.deb
and looked at some env vars... I get an error about file not found.
I am assuming that the user would double-click the script, or run it from home - not cd to the script location.