We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cea564 commit 1a443a3Copy full SHA for 1a443a3
misc/configure.py
@@ -27,3 +27,4 @@
27
build.install('auv-start-modules', 'misc/start_modules.sh')
28
build.install('auv-tplot', f='misc/tplot.py')
29
build.install('auv-thruster-mapper', f='misc/thruster_mapper.py')
30
+build.install('auv-hard-reset', f='misc/hard_reset.sh')
misc/hard_reset.sh
@@ -0,0 +1,10 @@
1
+
2
+BRANCH="$(git symbolic-ref HEAD | cut -f 3 -d /)"
3
+if [ "$BRANCH" = "master" ]; then
4
+ git fetch origin master
5
+ git checkout --force -B master origin/master
6
+ git reset --hard
7
+ git clean -fdx
8
+else
9
+ echo "Error: auv-hard-reset can only be used on the master branch."
10
+fi
0 commit comments