✏️ Better if syntax

This commit is contained in:
z3rOR0ne 2022-12-22 01:52:19 -08:00
parent f7f69ec6d2
commit db19605ebe
2 changed files with 153 additions and 3 deletions

View file

@ -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