Follow styleguide
This commit is contained in:
parent
51f4f650d2
commit
6f1a89b0f9
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue