Follow styleguide

This commit is contained in:
Santiago Lo Coco 2021-12-27 23:07:29 -03:00
parent 51f4f650d2
commit 6f1a89b0f9
1 changed files with 16 additions and 8 deletions

View File

@ -18,14 +18,22 @@ checkParameters() {
fi fi
case $flag in case $flag in
h) usage h)
exit 0 ;; usage
w) checkForDependencies "libnewt" exit 0
setDialogBox "whiptail" ;; ;;
d) checkForDependencies "dialog" w)
setDialogBox "dialog" ;; checkForDependencies "libnewt"
?) printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG" setDialogBox "whiptail"
exit 1 ;; ;;
d)
checkForDependencies "dialog"
setDialogBox "dialog"
;;
?)
printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"
exit 1
;;
esac esac
done done