rofi: Format rofi-surfraw with shellcheck
This commit is contained in:
parent
34fca7670f
commit
377ab6ea56
1 changed files with 36 additions and 35 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# source surfraw config
|
||||
source $HOME/.surfraw.conf
|
||||
|
@ -42,7 +42,8 @@ Searches without prepended engine use "${default}"</span>"
|
|||
elvi=$(echo -e "${list}\n${custom}" | rofi -dmenu -mesg "${HELP_MSG}" -p "Search > ")
|
||||
|
||||
# Some logic
|
||||
if [[ $elvi == "" ]]; then exit
|
||||
if [[ $elvi == "" ]]; then
|
||||
exit
|
||||
elif [[ $elvi == "!"* ]]; then
|
||||
entry=$(grep "$(echo "${elvi}" | awk '{ print $1 }')" "$HOME/.config/rofi-surfraw/searchengines")
|
||||
method=$(echo "${entry}" | awk -F ' - ' '{ print $2 }')
|
||||
|
|
Loading…
Reference in a new issue