openocd scripts: allow to call them from another dir

This commit is contained in:
Philippe Teuwen 2019-10-15 13:06:46 +02:00
parent bd13f72a59
commit 2173cadf23
3 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash
cd $(dirname "$0")
. openocd_configuration || exit 1
if [ -e "$DUMP" ]; then

View file

@ -1,5 +1,6 @@
#!/bin/bash
cd $(dirname "$0")
. openocd_configuration || exit 1
if [ ! -e "$IMAGE" ]; then

View file

@ -1,5 +1,6 @@
#!/bin/bash
cd $(dirname "$0")
. openocd_configuration || exit 1
echo "*********************************************"