2020-11-25 16:58:32 +01:00
|
|
|
#!/bin/bash
|
2020-11-27 11:53:21 +01:00
|
|
|
log="logger -t update.sh -s "
|
2020-11-25 16:58:32 +01:00
|
|
|
|
2020-11-27 11:53:21 +01:00
|
|
|
${log} "Updating the main repository"
|
2020-11-25 16:58:32 +01:00
|
|
|
cd /home/pi/PlanktonScope
|
|
|
|
|
|
|
|
git stash
|
|
|
|
git pull
|
|
|
|
git checkout stash@{0} -- config.json hardware.json
|
2020-11-27 11:53:21 +01:00
|
|
|
${log} "Done!"
|