cleanup code

pull/65/head
TomasM 2019-01-29 14:00:55 +00:00
parent 718a39ccc3
commit d877af9e8b
1 changed files with 1 additions and 3 deletions

View File

@ -11,9 +11,7 @@ while true; do
fi fi
done done
rm -f $BOOKMARKS.tmp cat $BOOKMARKS | fgrep -v ///media/ | fgrep -v "file:/// /" | egrep -v '^$' > $BOOKMARKS.tmp 2>/dev/null
cat $BOOKMARKS | fgrep -v ///media/ | fgrep -v "file:/// /" | egrep -v '^$' >> $BOOKMARKS.tmp 2>/dev/null
ls -1 /media | sort | while read LINE; do ls -1 /media | sort | while read LINE; do
echo "file:///media/$LINE $LINE" >> $BOOKMARKS.tmp echo "file:///media/$LINE $LINE" >> $BOOKMARKS.tmp
done done