Closed SubOptimal closed 5 years ago
Have you tested this out? It's actually working for me, because ${image-"$name"}
returns the value of $image
if the variable is set.
Reference: https://www.tldp.org/LDP/abs/html/parameter-substitution.html#DEFPARAM1
Sorry disturbing you. It's working as expected.
The issue was on my system. When I modified the script to make it runnable without sudo
I messed up the environment somehow.
Phew! :) Thanks for looking after this though, and for using the script!
The image name passed as
-i some-image-name
is always ignored.In the script is will be overridden at this stage