Improve some configs
This commit is contained in:
parent
0ed1633be6
commit
0edf379835
8 changed files with 46 additions and 11 deletions
|
@ -11,6 +11,12 @@ collection=$(get_collections | $DMENU -p "Collection: ")
|
|||
url=$QUTE_URL
|
||||
name=$(echo "$QUTE_TITLE" | $DMENU -p "Title: ")
|
||||
|
||||
if [ -z "$url" ] || [ -z "$name" ] || [ -z "$collection" ]
|
||||
then
|
||||
echo "message-error \"Failed to save link: Missing required fields\"" >> "$QUTE_FIFO"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
payload=$(jq -n \
|
||||
--arg u "$url" \
|
||||
--arg n "$name" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue