This commit is contained in:
Santiago Lo Coco 2021-12-27 21:44:46 -03:00
parent b7b7557473
commit 51f4f650d2
1 changed files with 8 additions and 16 deletions

View File

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