From eb1176aa3141a31e6ce1c178faa628df5488b091 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 7 Sep 2007 14:08:28 +0000 Subject: [PATCH] Exit early, exit often. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@64 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- bkmk-koi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bkmk-koi b/bkmk-koi index ef80df1..24b378d 100755 --- a/bkmk-koi +++ b/bkmk-koi @@ -11,6 +11,8 @@ export BKMK_NSFORMAT db2bkmk.py || exit 1 db2bkmk.py -p "Private links" -o public-koi.tmp || exit 1 +exit 0 + db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -o private-win.tmp || exit 1 db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -p "Private links" -o public-win.tmp || exit 1 @@ -28,9 +30,11 @@ replace public-win.tmp http://koi.postman.ru/ http://win.postman.ru/ towin < private-win.tmp > bookmark.ht0 towin < public-win.tmp > bookmark.ht1 -#diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out -# -#if [ "$1" = "-c" ]; then -# echo -n "Copying to home: " -# cp -p bookmarks.html $HOME/.netscape/bookmarks.html && echo "Ok" -#fi +exit 0 + +diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out + +if [ "$1" = "-c" ]; then + echo -n "Copying to home: " + cp -p bookmarks.html $HOME/.netscape/bookmarks.html && echo "Ok" +fi -- 2.39.5