mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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)
|
status)
|
||||||
printstatus() {
|
printstatus() {
|
||||||
if $2 ; then
|
if "$2" ; then
|
||||||
echo $1
|
echo "$1"
|
||||||
else
|
else
|
||||||
echo no$1
|
echo no"$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
printstatus enable $owncloud_enable_cur
|
printstatus enable $owncloud_enable_cur
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ejabberdctl register $1 `hostname` $2
|
ejabberdctl register "$1" `hostname` "$2"
|
||||||
|
|||||||
@ -22,10 +22,10 @@ while [ "$1" ] ; do
|
|||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
printstatus() {
|
printstatus() {
|
||||||
if $2 ; then
|
if "$2" ; then
|
||||||
echo $1
|
echo "$1"
|
||||||
else
|
else
|
||||||
echo no$1
|
echo no"$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
printstatus inband_enable $xmpp_inband_enable_cur
|
printstatus inband_enable $xmpp_inband_enable_cur
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user