Add -t option to ssh command for home server updates

This commit is contained in:
Jonathan Hodgson 2018-05-21 15:09:02 +01:00
parent c514e6042d
commit 84e452ae8f

View file

@ -1,9 +1,9 @@
#!/usr/bin/sh
count=$(ssh homeServer checkupdates | wc -l)
count=$(ssh homeServer -t checkupdates | wc -l)
if [ "$count" = "0" ]; then
count=""
fi
echo ""
else
echo $count
echo $count
if [ "$count" -gt "5" ]; then
@ -11,3 +11,4 @@ if [ "$count" -gt "5" ]; then
else
echo "#FF8000"
fi
fi