Skip to content

Commit

Permalink
* Replaced sh with bash because it can give issues when there are no …
Browse files Browse the repository at this point in the history
…spaces found
  • Loading branch information
blackcobra1973 committed Sep 2, 2014
1 parent b71ad79 commit 79f57cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/zabbix/externalscripts/cvpoller-zabbix
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ then
fi

# Rename property as it might contain dots in the complete property name, so that 'jq' can parse it
sh -c "vpoller-cclient ${_args} 2>/dev/null" | jq -r ".result[0] | {\"property\": .[\"${_property_name}\"]}.property"
bash -c "vpoller-cclient ${_args} 2>/dev/null" | jq -r ".result[0] | {\"property\": .[\"${_property_name}\"]}.property"
2 changes: 1 addition & 1 deletion contrib/zabbix/externalscripts/vpoller-zabbix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fi
### Excute the vpoller-client
if [ $normal -ne 0 ]
then
sh -c "vpoller-client -H vpoller.helpers.zabbix ${_args}" | awk '{print $1;}'
bash -c "vpoller-client -H vpoller.helpers.zabbix ${_args}" | awk '{print $1;}'
else
vpoller-client -H vpoller.helpers.zabbix ${_args}
fi

0 comments on commit 79f57cb

Please sign in to comment.