mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Make it available for first run if no file is present.
This commit is contained in:
parent
3bf45ee80d
commit
6803d72cdf
@ -2,6 +2,8 @@
|
||||
|
||||
FILE="~/.local/share/larbs/urlquery"
|
||||
|
||||
[ -s "$FILE" ] || echo "[]" > "$FILE"
|
||||
|
||||
OBJ_SELECTED=$(jq -r ".[][0]" "$FILE" | rofi -dmenu -l 10 -p "Select a website")
|
||||
|
||||
ENTRY_EXISTS=$(jq -r --arg sel "$OBJ_SELECTED" 'map(.[0] == $sel) | any' "$FILE")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user