Put quotes around variables in action scripts.

This commit is contained in:
James Valleroy 2013-10-05 18:16:55 -04:00
parent 17f3965db8
commit 41d57cc5fc
3 changed files with 7 additions and 7 deletions

View File

@ -23,10 +23,10 @@ while [ "$1" ] ; do
;;
status)
printstatus() {
if $2 ; then
echo $1
if "$2" ; then
echo "$1"
else
echo no$1
echo no"$1"
fi
}
printstatus enable $owncloud_enable_cur

View File

@ -1,2 +1,2 @@
#!/bin/sh
ejabberdctl register $1 `hostname` $2
ejabberdctl register "$1" `hostname` "$2"

View File

@ -22,10 +22,10 @@ while [ "$1" ] ; do
;;
status)
printstatus() {
if $2 ; then
echo $1
if "$2" ; then
echo "$1"
else
echo no$1
echo no"$1"
fi
}
printstatus inband_enable $xmpp_inband_enable_cur