main.json: update to update code ;-)
This commit is contained in:
parent
741f3b3000
commit
f1b49e672b
|
@ -3774,7 +3774,7 @@
|
||||||
"id": "386ce65d.a15d52",
|
"id": "386ce65d.a15d52",
|
||||||
"type": "exec",
|
"type": "exec",
|
||||||
"z": "1371dec5.76e671",
|
"z": "1371dec5.76e671",
|
||||||
"command": "/home/pi/PlanktoScope/scripts/bash/update.sh",
|
"command": "bash /home/pi/PlanktonScope/scripts/bash/update.sh",
|
||||||
"addpay": false,
|
"addpay": false,
|
||||||
"append": "",
|
"append": "",
|
||||||
"useSpawn": "false",
|
"useSpawn": "false",
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
log="logger -t update.sh -s "
|
||||||
|
|
||||||
|
${log} "Updating the main repository"
|
||||||
cd /home/pi/PlanktonScope
|
cd /home/pi/PlanktonScope
|
||||||
|
|
||||||
git stash
|
git stash
|
||||||
git pull
|
git pull
|
||||||
git checkout stash@{0} -- config.json hardware.json
|
git checkout stash@{0} -- config.json hardware.json
|
||||||
|
${log} "Done!"
|
Loading…
Reference in a new issue