View difference between Paste ID: BVkEKhr1 and rprNutp7
SHOW: | | - or go back to the newest paste.
1
#!/bin/bash
2
Status=`curl --silent localhost/mws/component/status/urn:installation:router |grep Alive |awk '{print $5}' |cut -c2-6`
3-
echo $Status
3+
echo "$Status"
4-
if [ $Status="Burek" ]
4+
if [ "$Status" = "Burek" ]
5
then
6-
echo "OK"
6+
  echo "OK"
7
else
8-
echo "Not OK"
8+
  echo "Not OK"
9
fi