mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-21 07:26:31 -05:00
Merge pull request #39 from noon92/working
yet another try fix usbconfig
This commit is contained in:
commit
bd09df63c0
1 changed files with 3 additions and 2 deletions
|
|
@ -5,8 +5,9 @@ attempts=$2
|
|||
ref="$3: "
|
||||
for retries in $(seq 1 $attempts); do
|
||||
|
||||
output=$(meshtastic --host 127.0.0.1 $command >&2) #>&2 lets meshtastic's output display on screen
|
||||
|
||||
output=$(meshtastic --host 127.0.0.1 $command) #>&2 lets meshtastic's output display on screen
|
||||
echo $output
|
||||
logger $output
|
||||
if echo "$output" | grep -qiE "Abort|invalid|Error|refused|Errno"; then
|
||||
if [ "$retries" -lt $attempts ]; then
|
||||
msg="${ref:+$ref }Meshtastic update failed, retrying ($(($retries + 1))/$attempts)..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue