added missing quotes around variables

This commit is contained in:
root 2017-02-24 19:49:14 +00:00
parent 83bf70e67a
commit 8043247fe3
2 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@ lounge_light_toggle() {
}
cd "$(dirname $0)"
rm -f $COMMAND_FILE
mkfifo $COMMAND_FILE
chmod 666 $COMMAND_FILE
rm -f "$COMMAND_FILE"
mkfifo "$COMMAND_FILE"
chmod 666 "$COMMAND_FILE"
while true; do
while IFS='' read -r line || [[ -n "$line" ]]; do
echo "command received: $line"

View File

@ -6,7 +6,7 @@
# command="/home/automation/chch-power/shell.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAA...
COMMAND_FILE=/tmp/command
if [ ! -p $COMMAND_FILE ]; then
if [ ! -p "$COMMAND_FILE" ]; then
echo "ERROR; command watcher not listening:" >&2
exit 1
fi