I'm trying to create a bash script to run an AppImage on startup with certain flags.
This is the normal way to run through terminal on the folder where the appimage is located:
$ ./conky.AppImage -c $HOME/Downloads/Pleione/Pleione.conf &> /dev/null &
And I'm trying to put that in a bash script. I have this:
#!/bin/bash
cmd= $(echo /home/edbanshee/Downloads/conky.AppImage)
$cmd
And of course, it runs the AppImage, however I have no idea how to include the -c flag with the parameters. To my very limited knowledge, I tried something like:
#!/bin/bash
cmd= $(echo /home/edbanshee/Downloads/conky.AppImage)
$cmd -c $HOME/Downloads/Pleione/Pleione.conf &> /dev/null &
To no avail so I guess thats not how that works (sorry if these are silly attempts, I am learning by trial and error)
Yet i can't seem to find any information about bash scripting on how to accomplish this, or maybe I'm bad at looking. I found tutorials regarding getops, but as I understand it, that works to pass flags onto the script itself, which doesn't seem to be what I'm looking for, or am I understanding it incorrectly?
Any suggestions?