add option to skip
This commit is contained in:
parent
1274db349c
commit
8ab655abdd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue