aboutsummaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorRenato Golin <rengolin@gmail.com>2016-06-06 21:27:54 +0100
committerRenato Golin <rengolin@gmail.com>2016-06-06 21:27:54 +0100
commitc5b3cd81e67aaa9ef5d14fe83b9682ef2100318e (patch)
tree02de68b8b5611df6650252779d87ef7ef46a9744 /monitor
parent3822c5f92a0ac773d6febc080a0ffab034ff57d8 (diff)
downloadlinaro-scripts-c5b3cd81e67aaa9ef5d14fe83b9682ef2100318e.tar.gz
[monitor] Fix shellcheck warnings, typo
Change-Id: Iccedb32e03eb2b446497d040cc5533ced5a4979a
Diffstat (limited to 'monitor')
-rwxr-xr-xmonitor/install.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor/install.sh b/monitor/install.sh
index 64fe278..7f503a5 100755
--- a/monitor/install.sh
+++ b/monitor/install.sh
@@ -13,8 +13,8 @@
# 4. Follow the instructions
# Full path
-BASE=`readlink -fn -- "$0"`
-BASE=`dirname "$BASE"`
+BASE=$(readlink -fn -- "$0")
+BASE=$(dirname "$BASE")
if [ ! -x "$BASE/bot-status" ]; then
echo "Make sure the install script is in the monitor directory"
exit 1
@@ -33,7 +33,7 @@ JSON=
MANY=0
for json in "$BASE"/*.json; do
if [ "$JSON" = "" ]; then
- JSON="`basename $json`"
+ JSON="$(basename "$json")"
else
MANY=1
fi
@@ -99,5 +99,5 @@ echo
# Crontab
echo " * To run the application every five minutes, add this line to your crontab:"
-echo " */5 * * * * $ROOT/bin/bot-status $ROOT/bin/$JSON $ROOT/html/index/html"
+echo " */5 * * * * $ROOT/bin/bot-status $ROOT/bin/$JSON $ROOT/html/index.html"
echo