diff options
author | V.Krishn <vkrishn4@gmail.com> | 2021-12-14 02:12:08 +0530 |
---|---|---|
committer | V.Krishn <vkrishn4@gmail.com> | 2021-12-14 02:12:08 +0530 |
commit | c7e4b82304be636211160433329e451648af4eab (patch) | |
tree | 43e7bf3c1104e8b6509ef9c440eac21fdb03d6af | |
parent | 3578de6704dd2bee17d1942976060c1a6390c36d (diff) | |
download | nbreader-c7e4b82304be636211160433329e451648af4eab.tar.bz2 |
fix minor bug in missedlst
-rw-r--r-- | run.sh | 5 | ||||
-rw-r--r-- | scripts/fetch.sh | 2 | ||||
-rw-r--r-- | scripts/search.sh | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -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 |