aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/feedicon.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/feedicon.sh b/scripts/feedicon.sh
index 66bcd7e..2eb7f3a 100644
--- a/scripts/feedicon.sh
+++ b/scripts/feedicon.sh
@@ -177,12 +177,13 @@ get_feedicon() {
echo $s --- $u1
u1=$(dirname $u1)
fetch_feedicon "${proto}$u1/favicon.ico"
- if is_file_ico $localIco; then
- echo -e ${cYELLOW}' msg: favicon.ico is available - '${cGREEN}'download success'${cNORMAL}
- return;
- fi
done
- echo -e ${cRED}' msg: favicon.ico not available, retrying ...'${cNORMAL};
+ if is_file_ico $localIco; then
+ echo -e ${cYELLOW}' msg: favicon.ico is available - '${cGREEN}'download success'${cNORMAL};
+ return;
+ else
+ echo -e ${cRED}' msg: favicon.ico not available, retrying ...'${cNORMAL};
+ fi
# 2. Try to extract from RSS url dirname variant pages
BURL=$(echo $url | sed -e "s,?.*$,,")