04-11-2019, 10:41 PM
Hey everyone!
I am trying to write a script to install the I3 window manager along with specific software on my machines so I don't have to do everything manually.
I include a --help and a --minimal option that the user can invoke as an argument when running the script.
Here is the script if you'd like to read, it's not that complicated: https://pastebin.com/k0Kmxt4S
The if statements starting at line 127 test if the user has entered either the --help or --minimal option to the script. When I look at the code it seems fine to me (probably cause I'm a noob) but when I invoke either option, the script just executes normally and does not take the option
into account.
I'm probably missing something or doing something wrong. Any thoughts?
I am trying to write a script to install the I3 window manager along with specific software on my machines so I don't have to do everything manually.
I include a --help and a --minimal option that the user can invoke as an argument when running the script.
Here is the script if you'd like to read, it's not that complicated: https://pastebin.com/k0Kmxt4S
The if statements starting at line 127 test if the user has entered either the --help or --minimal option to the script. When I look at the code it seems fine to me (probably cause I'm a noob) but when I invoke either option, the script just executes normally and does not take the option
into account.
I'm probably missing something or doing something wrong. Any thoughts?