annotate backup/update.sh @ 1789:bac27b119ff2

exit code 1 on exception
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 24 Dec 2023 16:52:35 -0700
parents 25833dd89844
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1695
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 #!/bin/bash
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 set -e
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 ./stop.sh
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 echo Updating hg
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 hg pull -u
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 ../scripts/build-luan.sh
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 echo Starting...
25833dd89844 add backup/update.sh
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 ./start.sh