: Added double quotes to fix error reported by shellcheck.

This commit is contained in:
Mirko König 2021-09-06 07:08:58 +02:00
parent 7f2e3bcd4a
commit 1ad1771e64
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ TOKEN=$(rofi -dmenu -password -p "1password: "| op signin --output=raw) || TOKEN
if [ -n "$TOKEN" ]; then
UUID=$(op list items --cache --session="$TOKEN" | jq --arg url "$URL" -r '[.[] | {uuid, url: [.overview.URLs[]?.u, .overview.url][]?} | select(.uuid != null) | select(.url != null) | select(.url|test(".*\($url).*"))][.0].uuid') || UUID=""
if [ -z "$UUID" ] || [ $UUID == "null" ];then
if [ -z "$UUID" ] || [ "$UUID" == "null" ];then
echo "message-error 'No entry found for $URL'" >> "$QUTE_FIFO"
TITLE=$(op list items --cache --session="$TOKEN" | jq -r '.[].overview.title' | rofi -dmenu -i) || TITLE=""
if [ -n "$TITLE" ]; then