Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install.sh: Improve the installation script
- Simplified the basic installation code to improve the readability. - Added options such as --dest, --name, --color, --size, and --help. - A lot of codes/ideas/descriptions are based on @n3oxmind work! - This is still incomplete and a few bugs remain. TODO/BUGS: - Needs to update 'change_color.sh' accordingly. - Can't use 'standard' instead of 'normal' as an argument of --size option... Why? - When the wrong argument(s) is typed to --color/--size, incorrect error message will be shown. (e.g. `./install.sh --color lighttt`) Even if we rewrite "*" to *, the script does not start. :(
- Loading branch information
960249d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand from your script that your trying to parse the arguments manually without getopt or similar tools.
and since you're using a nested case, arguments handling will get complex. I already fixed your code regarding the parsing. see the FIX:
960249d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@n3oxmind
Wow, it seems everything go well!!
Thank you very much for your advice!