Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22 from weslambert/master
Browse files Browse the repository at this point in the history
minor script fixes
  • Loading branch information
dougburks authored Aug 17, 2018
2 parents e8f62bf + fd2f224 commit 55019f0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion usr/sbin/so-elasticsearch-template-add
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add Elasticsearch Template
EOF
}

while getopts "h:t:s:" OPTION
while getopts "ht:s:" OPTION
do
case $OPTION in
h)
Expand Down
4 changes: 2 additions & 2 deletions usr/sbin/so-elasticsearch-template-create
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Create Elasticsearch Template
EOF
}

while getopts "h:c:d:i:ko:s:" OPTION
while getopts "hc:d:i:ko:s:" OPTION
do
case $OPTION in
h)
Expand Down Expand Up @@ -100,7 +100,7 @@ cat << EOF > $DFILE
"properties":{
EOF

if [ $KEYWORD == "YES" ]; then
if [[ $KEYWORD == "YES" ]]; then
KEYWORD=1
fi
if [[ $KEYWORD = 1 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion usr/sbin/so-elasticsearch-template-remove
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Remove Elasticsearch Template
EOF
}

while getopts "h:t:" OPTION
while getopts "ht:" OPTION
do
case $OPTION in
h)
Expand Down
2 changes: 1 addition & 1 deletion usr/sbin/so-logstash-restart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Restart Logtash
EOF
}

while getopts "h:v" OPTION
while getopts "hv" OPTION
do
case $OPTION in
h)
Expand Down
2 changes: 1 addition & 1 deletion usr/sbin/so-logstash-start
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Start Logtash
EOF
}

while getopts "h:v" OPTION
while getopts "hv" OPTION
do
case $OPTION in
h)
Expand Down

0 comments on commit 55019f0

Please sign in to comment.