File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,11 @@ Usage()
71
71
echo " Message types:"
72
72
echo " config:"
73
73
echo " - set or get configuration"
74
- echo " - query is formed in the message <text >:"
74
+ echo " - query is formed in the message <tag >:"
75
75
echo " - \" setconf\" send configuration to webapp."
76
- echo " Requires input file as argument."
76
+ echo " Requires input file as argument in <text> ."
77
77
echo " - \" getconf\" retrieves configuration from webapp."
78
78
echo " Prints the configuration in XML to stdout."
79
- echo " - or as a <tag>:"
80
79
echo " - \" set\" sets the particular configuration option (only primitive types)"
81
80
echo " in the webapp."
82
81
echo " Examples:"
384
383
echo " Unknown option \" $opt \" " && Usage && exit 5
385
384
;;
386
385
* )
387
- if [ " $MESSAGE_TYPE " = " config" -a " $1 " = " setconf " ]
388
- then
389
- MESSAGE_TAGS+=( -g " setconf" )
390
- shift
391
- MESSAGE_FILE= " $@ "
386
+ if [ " $MESSAGE_TYPE " = " config" ] ; then
387
+ tags= ${MESSAGE_TAGS[@]}
388
+ if [ " $tags " == " -g setconf" ] ; then
389
+ MESSAGE_FILE= " $@ "
390
+ fi
392
391
else
393
392
if [ $# -ne 1 ]
394
393
then
You can’t perform that action at this time.
0 commit comments