grep for changes before reset

pull/88/head
alanbjohnston 5 years ago committed by GitHub
parent 045e918971
commit 9acc825ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,6 +38,8 @@ if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload"
sudo systemctl daemon-reload
else
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
if [[ $(grep cat .updated) ]]; then
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
fi
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.