summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index ad22429..dfa3f40 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -112,9 +112,9 @@ get_options()
while getopts 'bBPSFT:a:p:DdCcr:hV' opt; do
case "${opt}" in
b)
- if [ -n "${opt_build}" ]; then
- ob_error "$(ob_get_msg 'bsf_mutex')"
- fi
+ case "${opt_build}" in ''|'binary');; *)
+ ob_error "$(ob_get_msg 'bsf_mutex')";;
+ esac
opt_build='binary'
;;
B)
@@ -132,15 +132,15 @@ get_options()
opt_plat_dep=true
;;
S)
- if [ -n "${opt_build}" ]; then
- ob_error "$(ob_get_msg 'bsf_mutex')"
- fi
+ case "${opt_build}" in ''|'source');; *)
+ ob_error "$(ob_get_msg 'bsf_mutex')";;
+ esac
opt_build='source'
;;
F)
- if [ -n "${opt_build}" ]; then
- ob_error "$(ob_get_msg 'bsf_mutex')"
- fi
+ case "${opt_build}" in ''|'full');; *)
+ ob_error "$(ob_get_msg 'bsf_mutex')";;
+ esac
opt_build='full'
;;
T)