Improve some configs

This commit is contained in:
Tobias Reisinger 2024-06-13 18:29:58 +02:00
parent 0ed1633be6
commit 0edf379835
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 46 additions and 11 deletions

View file

@ -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" \