: Added double quotes to fix error reported by shellcheck.
This commit is contained in:
parent
7f2e3bcd4a
commit
1ad1771e64
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue