mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-04-13 23:43:49 +00:00
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:
1
flash.sh
1
flash.sh
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user