Skip to content

Commit 975b9a5

Browse files
committed
fix tag handling
1 parent 152b0ba commit 975b9a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tools/Messages

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,9 @@ do
383383
echo "Unknown option \"$opt\"" && Usage && exit 5
384384
;;
385385
*)
386-
if [ "$MESSAGE_TYPE" = "config" ]; then
387-
tags=${MESSAGE_TAGS[@]}
388-
if [ "$tags" == "-g setconf" ]; then
389-
MESSAGE_FILE="$@"
390-
fi
386+
tags=${MESSAGE_TAGS[@]}
387+
if [ "$MESSAGE_TYPE" = "config" -a "$tags" = "-g setconf" ]; then
388+
MESSAGE_FILE="$@"
391389
else
392390
if [ $# -ne 1 ]
393391
then

0 commit comments

Comments
 (0)