From aa684f176346e5057104bc4d7fe5710b7f6fc06c Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 18 Feb 2016 15:44:05 +0100 Subject: [PATCH] [script]flash_all simplify messages --- scripts/flash_all | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/flash_all b/scripts/flash_all index fd29d96..8490e98 100755 --- a/scripts/flash_all +++ b/scripts/flash_all @@ -103,11 +103,12 @@ fi if [ $# -eq 0 ]; then imgList=$(ls *.img 2>/dev/null) - echo "Flashing all images in current path $imgList" else imgList=$@ - echo "Flashing $imgList" fi +echo "Images to flash: $imgList" + + if [ -z "$imgList" ]; then echo "No img to Flash"