mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Small clean-up
This commit is contained in:
parent
fe2747d30d
commit
7d74a86a6b
@ -18,7 +18,7 @@ val() { pr "${1}" | grep -qE '^https?://[^\s/$.?#].[^\s]*$'; }
|
||||
add() {
|
||||
u="$(xclip -o)"
|
||||
val "${u}" || eno "Clipboard not valid"
|
||||
grep -q "=${u}$" "${f}" && no "URL already saved" && exit
|
||||
grep -q "=${u}$" "${f}" && eno "URL already saved"
|
||||
n="$(pr "" | d "0" "Name")"
|
||||
[ "${n}" ] && pr "${n}=${u}" >> "${f}" && no "'${n}' bookmarked"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user