add option to skip

This commit is contained in:
David Holdeman 2022-01-24 17:04:18 -06:00
parent 1274db349c
commit 8ab655abdd
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ searchfile() {
echo "$LINE"
fi
echo $link
read -p "Enter a title or leave empty to use URL as title: " TITLE
read -p "Enter a title or leave empty to use URL as title or enter 'n' to skip: " TITLE
if [ "$TITLE" == "n" ]; then
continue
fi
if [ $(echo -n "$TITLE" | wc -c) -lt 1 ]; then
TITLE="$link"
fi