aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-21 19:58:36 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-21 19:58:36 +0300
commit52a2aa5d4168f4f82ee62b778f4f57dc4d1a975b (patch)
tree9cd7682252f6cd35c4bfabc4610003de35823280
parenta479092a592bc1f97f849410593f8a06a8688cd1 (diff)
downloadswayrice-52a2aa5d4168f4f82ee62b778f4f57dc4d1a975b.tar.gz
swayrice-52a2aa5d4168f4f82ee62b778f4f57dc4d1a975b.zip
menuman: fix redirect to stderr
-rwxr-xr-xdotfiles/.local/bin/menuman8
1 files changed, 4 insertions, 4 deletions
diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman
index 30a5424..98efc02 100755
--- a/dotfiles/.local/bin/menuman
+++ b/dotfiles/.local/bin/menuman
@@ -11,9 +11,9 @@ issearch=
isterminal=
printusage() {
- echo "Options:" >2
- echo " -t use in terminal with fzf otherwise launch bemenu." >2
- echo " -s search with apropos." >2
+ echo "Options:" >&2
+ echo " -t use in terminal with fzf otherwise launch bemenu." >&2
+ echo " -s search with apropos." >&2
}
while getopts "st" curopt "$@"; do
@@ -38,7 +38,7 @@ if [ ! -z "$issearch" ]; then
query="$(echo "" | bemenu -p "Enter apropos query:" -i --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
fi
if [ -z "$query" ]; then
- echo "Empty query" >2
+ echo "Empty query" >&2
exit 1
fi
list="$(apropos "$query")"