✏️ Better if syntax
This commit is contained in:
parent
f7f69ec6d2
commit
db19605ebe
2 changed files with 153 additions and 3 deletions
|
|
@ -92,9 +92,7 @@ rgb_to_hex() {
|
|||
}
|
||||
|
||||
main() {
|
||||
if [[ "$#" -lt 1 ]]; then
|
||||
printhelp
|
||||
fi
|
||||
[[ "$#" -lt 1 ]] && printhelp
|
||||
|
||||
while getopts ":x:r:?" arg; do
|
||||
case $arg in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue