fff-hoods: Suppress warning for missing sectorfile

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Adrian Schmutzler 2017-11-04 15:06:03 +01:00 committed by Tim Niemeyer
parent 90e0643b29
commit 56c07144f7
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,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...";