From patchwork Sat Nov 4 14:06:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fff-hoods: Suppress warning for missing sectorfile From: Adrian Schmutzler X-Patchwork-Id: 666 Message-Id: <1509804363-2104-1-git-send-email-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Sat, 4 Nov 2017 15:06:03 +0100 Signed-off-by: Adrian Schmutzler Reviewed-by: Tim Niemeyer --- src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 5447d2f..000e3b8 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -232,7 +232,7 @@ if [ -s "$hoodfile" ]; then # copy the file to webroot so that other mesh routers can download it; # copy only after all other steps so IF can be reentered if something goes wrong cp "$hoodfile" "$hoodfilecopy" - cp "$sectortmp" "$sectorcopy" + [ -s "$sectortmp" ] && cp "$sectortmp" "$sectorcopy" else echo "We have no new file. We do nothing. We try it again in 5 minutes...";