aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2021-12-14 02:12:08 +0530
committerV.Krishn <vkrishn4@gmail.com>2021-12-14 02:12:08 +0530
commitc7e4b82304be636211160433329e451648af4eab (patch)
tree43e7bf3c1104e8b6509ef9c440eac21fdb03d6af
parent3578de6704dd2bee17d1942976060c1a6390c36d (diff)
downloadnbreader-c7e4b82304be636211160433329e451648af4eab.tar.bz2
fix minor bug in missedlst
-rw-r--r--run.sh5
-rw-r--r--scripts/fetch.sh2
-rw-r--r--scripts/search.sh2
3 files changed, 7 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 32bd080..e05fa7e 100644
--- a/run.sh
+++ b/run.sh
@@ -81,6 +81,11 @@ if [ "$1" = 'update' ]; then
fi
;;
esac
+
+ if [ -s "${missedlst}.tmp" ]; then
+ cat ${missedlst}.tmp > ${missedlst}
+ rm -f ${missedlst}.tmp
+ fi
fi
if [ "$1" = 'refresh' ]; then
diff --git a/scripts/fetch.sh b/scripts/fetch.sh
index 3b18910..767898d 100644
--- a/scripts/fetch.sh
+++ b/scripts/fetch.sh
@@ -132,7 +132,7 @@ fetch_url() {
echo -e ${cRED}'msg: not a xml/rss document'${cNORMAL};
fi
else
- echo $URLSUM >> $missedlst
+ echo $URLSUM >> ${missedlst}.tmp
echo -e ${cRED}'msg: url unreachable'${cNORMAL};
fi
else
diff --git a/scripts/search.sh b/scripts/search.sh
index b8ab5d7..2dc92d6 100644
--- a/scripts/search.sh
+++ b/scripts/search.sh
@@ -69,7 +69,7 @@ if [ "$2" ]; then
limitn="-n $(($2+2))"
else
limit="limit 10"
- limitn="-n $((10+2))"
+ limitn="-n 12"
fi
if [ "$3" ]; then