Added more comments
This commit is contained in:
parent
e89aec7852
commit
b3238b4ebd
6
bwSearch
6
bwSearch
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
export BW_SESSION = your token here
|
||||
|
||||
# [[ $# -eq 0 ]] && query=$(zenity --entry --text="Site" --entry-text="git..") || query=$@
|
||||
[[ $# -eq 0 ]] && query=$(echo -e "\n" | dmenu -p "What to search:") || query=$@
|
||||
# the query is passed through parameters, if not it's asked through a text-box
|
||||
|
||||
|
@ -18,8 +17,9 @@ for row in $(echo "${json}" | jq -r '.[] | @base64'); do
|
|||
|
||||
# echo $(_jq '.login.username')
|
||||
user="$(echo $(_jq '.login.username'))"
|
||||
usersdmenu="$usersdmenu$user\n"
|
||||
userssplit="$userssplit$user,"
|
||||
usersdmenu="$usersdmenu$user\n" #array used for the choosing phase in dmenu
|
||||
userssplit="$userssplit$user," #array used for extracting the password from the json
|
||||
|
||||
password="$(_jq '.login.password')"
|
||||
passwords="$passwords$password,"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user