added test to see if pi-power-button changed before reinstalling

pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent 846ba7051a
commit c3baf77935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,9 +19,17 @@ sudo sed -i 's/more information/more\ninformation/g' /etc/motd
sudo sed -i 's/update to/update\nto/g' /etc/motd
cd /home/pi/pi-power-button && git pull
cd /home/pi/pi-power-button
script/install
git pull .updated_p
grep 'changed' /home/pi/pi-power-button/.updated_p
if [[ $(grep 'changed' /home/pi/pi-power-button/.updated_p) ]]; then
echo "reinstalling pi-power-button"
script/install
else
echo "nothing to do for pi-power-button"
fi
cd

Loading…
Cancel
Save

Powered by TurnKey Linux.