From 6fc0f930968a10f80efa4fe05ea306e9fcc860a5 Mon Sep 17 00:00:00 2001 From: Wu Erqi Date: Fri, 20 Aug 2021 10:41:54 +0800 Subject: [PATCH] Fix multiple options issue on Unix platform --- plat/unix/update_tags.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/unix/update_tags.sh b/plat/unix/update_tags.sh index 96823a0..7a41456 100755 --- a/plat/unix/update_tags.sh +++ b/plat/unix/update_tags.sh @@ -70,7 +70,7 @@ while getopts "h?e:x:t:p:l:L:s:o:O:P:cA" opt; do PAUSE_BEFORE_EXIT=1 ;; o) - CTAGS_OPT_FILE="--options=$OPTARG" + CTAGS_OPT_FILE="$CTAGS_OPT_FILE --options=$OPTARG" ;; O) CTAGS_ARGS="$CTAGS_ARGS $OPTARG" @@ -129,7 +129,7 @@ if [ $INDEX_WHOLE_PROJECT -eq 1 ]; then echo "Running ctags on whole project" if [ "$CTAGS_OPT_FILE" != "" ]; then echo "$CTAGS_EXE -f \"$TAGS_FILE.temp\" \"$CTAGS_OPT_FILE\" $CTAGS_ARGS \"$CTAGS_ARG_LAST\"" - "$CTAGS_EXE" -f "$TAGS_FILE.temp" "$CTAGS_OPT_FILE" $CTAGS_ARGS "$CTAGS_ARG_LAST" + "$CTAGS_EXE" -f "$TAGS_FILE.temp" $CTAGS_OPT_FILE $CTAGS_ARGS "$CTAGS_ARG_LAST" else echo "$CTAGS_EXE -f \"$TAGS_FILE.temp\" $CTAGS_ARGS \"$CTAGS_ARG_LAST\"" "$CTAGS_EXE" -f "$TAGS_FILE.temp" $CTAGS_ARGS "$CTAGS_ARG_LAST"