mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-02-11 10:34:45 +00:00
Merge pull request #58 from LinuxJedi/flash-detection-fix
Fix CPLD detection sometimes failing
This commit is contained in:
5
flash.sh
5
flash.sh
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if pgrep -x "emulator" > /dev/null
|
||||
then
|
||||
echo "PiStorm emulator is running, please stop it first"
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
echo "openocd is not installed, please run \"sudo apt install openocd\""
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if pgrep -x "emulator" > /dev/null
|
||||
then
|
||||
echo "PiStorm emulator is running, please stop it first"
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
echo "openocd is not installed, please run \"sudo apt install openocd\""
|
||||
|
||||
Reference in New Issue
Block a user