summaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.sh b/common.sh
index 3d8c3ec..61fa26f 100644
--- a/common.sh
+++ b/common.sh
@@ -92,7 +92,9 @@ emacs_getopt() {
declare o="$1"
declare l="$2"
shift 2
- emacs_getopt_init
+ [[ -z "${emacs_getopt_o}" ]] ||
+ [[ -z "${emacs_getopt_l}" ]] ||
+ emacs_getopt_init
getopt -a \
-n "$0" \
-o "${emacs_getopt_o}${o}" \