mute .swu search when unmount SUB share

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2020-11-06 16:47:53 +01:00
parent 83ca140854
commit 705d2abac7
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ mount_share () {
fi
# Check if there is a software update file
for file in $(ls /mnt/FunKey-*.swu); do
for file in $(ls /mnt/FunKey-*.swu >/dev/null 2>&1); do
swupdate -i "${file}"
if [ $? -ne 0 ]; then
break