commit 2775c7b900c687176399ada194ac01b280c7d6bd
parent 6ece95873e5ae6edc4e92eb77712e3dbeb6f3fd1
Author: Wim Dupont <wim@wimdupont.com>
Date: Sun, 5 May 2024 08:17:46 +0200
fixed some file descriptors
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/bookmark b/bin/bookmark
@@ -5,14 +5,14 @@ source ~/.config/scripts/properties
shopt -s nullglob globstar
readonly BOOKMARK_FILE=~/.config/scripts/bookmarks
-readonly SEARCH_URI="http://localhost/search?q="
+readonly SEARCH_URI="https://duckduckgo.com/?q="
readarray -t bookmarks < "$BOOKMARK_FILE"
bookmark=$(printf '%s\n' "${bookmarks[@]}" | "$dmenu" -fn "$dmenu_font" -i -l "$dmenu_lines" "$@")
if [ -z "${bookmark}" ]; then
- exit 0
+ exit 1
fi
if [[ ! ${bookmark} =~ ^(https?://*) ]]; then
diff --git a/bin/coin b/bin/coin
@@ -18,7 +18,7 @@ while getopts ":hf:" arg; do
$ coin -f 'name current_price price_change_24h' monero
$ coin -h
"
- exit 1;;
+ exit 0;;
esac
done
diff --git a/bin/radio b/bin/radio
@@ -22,4 +22,4 @@ do
fi
done
-notify-send "Radio" "No valid station given"
+notify-send "Radio" "No valid station given" && exit 1
diff --git a/bin/yt b/bin/yt
@@ -20,7 +20,7 @@ while getopts ":ahn:" arg; do
$ yt why use free sofware
$ yt -n 5 -a best songs ever
"
- exit 1;;
+ exit 0;;
esac
done
@@ -29,7 +29,7 @@ shift $((OPTIND-1))
query=$@
if [[ -z "$query" ]]; then
- echo "Please enter search query argument (-h for help)"
+ echo "Please enter search query argument (-h for help)" >&2
exit 1
fi