mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Put quotes around variables in action scripts.
This commit is contained in:
parent
17f3965db8
commit
41d57cc5fc
@ -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
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
ejabberdctl register $1 `hostname` $2
|
||||
ejabberdctl register "$1" `hostname` "$2"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user