From f1b49e672b91542078d1aa619626cd1a6698122a Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Fri, 27 Nov 2020 11:53:21 +0100 Subject: [PATCH] main.json: update to update code ;-) --- flows/main.json | 2 +- scripts/bash/update.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flows/main.json b/flows/main.json index be89cf6..abfc86b 100644 --- a/flows/main.json +++ b/flows/main.json @@ -3774,7 +3774,7 @@ "id": "386ce65d.a15d52", "type": "exec", "z": "1371dec5.76e671", - "command": "/home/pi/PlanktoScope/scripts/bash/update.sh", + "command": "bash /home/pi/PlanktonScope/scripts/bash/update.sh", "addpay": false, "append": "", "useSpawn": "false", diff --git a/scripts/bash/update.sh b/scripts/bash/update.sh index c61869c..89657bf 100755 --- a/scripts/bash/update.sh +++ b/scripts/bash/update.sh @@ -1,7 +1,10 @@ #!/bin/bash +log="logger -t update.sh -s " +${log} "Updating the main repository" cd /home/pi/PlanktonScope git stash git pull git checkout stash@{0} -- config.json hardware.json +${log} "Done!" \ No newline at end of file