Posted: Mon 11 Jul 2016, 16:31
The bookmarking script bm.sh sometimes downloads a .htm file instead of a .html file.
That messes up the bookmarks html pages as they reference html files and not htm files.
So I decided to detect htm extensions and rename them to html.
In bm.sh replace this
with this
It fixes the problem.
Make sure to modify bm.sh in all 5 of the .bookmarks folders.
.bookmarks, .bookmarks-02, .bookmarks-03, .bookmarks-04, .bookmarks-05.
When I get time I will make a .pet to include all of the recent modifications.
That messes up the bookmarks html pages as they reference html files and not htm files.
So I decided to detect htm extensions and rename them to html.
In bm.sh replace this
Code: Select all
rsync -av --exclude='*.js' /root/$time /root/.bookmarks/bm/wp
rm -rf /root/$time
########################### insert modification here
echo $title | yad --no-buttons --on-top --geometry='900x100' --title $time --text-info
fi
with this
Code: Select all
rsync -av --exclude='*.js' /root/$time /root/.bookmarks/bm/wp
rm -rf /root/$time
############################ start modification
export DIR=/root/.bookmarks/bm/wp/$time
if ls ${DIR}/*.htm &>/dev/null
then
echo "file is .htm . . . so rename it to .html"
mv /root/.bookmarks/bm/wp/$time/$time.{htm,html}
fi
############################## end modification
echo $title | yad --no-buttons --on-top --geometry='900x100' --title $time --text-info
fi
It fixes the problem.
Make sure to modify bm.sh in all 5 of the .bookmarks folders.
.bookmarks, .bookmarks-02, .bookmarks-03, .bookmarks-04, .bookmarks-05.
When I get time I will make a .pet to include all of the recent modifications.