Fix flash for sudo

When executed under sudo the wrong shell is used by Debian, causing an
error. This patch fixes the script so it specifies which shell to use.

Note that you don't need to run flash.sh under sudo because it sudos
itself.
This commit is contained in:
Andrew Hutchings
2021-06-29 13:21:22 +01:00
parent b0616b5246
commit cfc65d4931
2 changed files with 2 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
#!/bin/bash
set -o pipefail
if ! command -v openocd &> /dev/null
then

View File

@@ -1,3 +1,4 @@
#!/bin/bash
set -o pipefail
if ! command -v openocd &> /dev/null
then