Follow styleguide
This commit is contained in:
parent
51f4f650d2
commit
6f1a89b0f9
|
@ -18,14 +18,22 @@ checkParameters() {
|
|||
fi
|
||||
|
||||
case $flag in
|
||||
h) usage
|
||||
exit 0 ;;
|
||||
w) checkForDependencies "libnewt"
|
||||
setDialogBox "whiptail" ;;
|
||||
d) checkForDependencies "dialog"
|
||||
setDialogBox "dialog" ;;
|
||||
?) printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"
|
||||
exit 1 ;;
|
||||
h)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
w)
|
||||
checkForDependencies "libnewt"
|
||||
setDialogBox "whiptail"
|
||||
;;
|
||||
d)
|
||||
checkForDependencies "dialog"
|
||||
setDialogBox "dialog"
|
||||
;;
|
||||
?)
|
||||
printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue