aboutsummaryrefslogtreecommitdiff
path: root/vis-open
diff options
context:
space:
mode:
Diffstat (limited to 'vis-open')
-rwxr-xr-xvis-open4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-open b/vis-open
index a47249f..70d5328 100755
--- a/vis-open
+++ b/vis-open
@@ -7,7 +7,7 @@ PATTERN="."
while [ $# -gt 0 ]; do
case "$1" in
-h|--help)
- echo "usage: $0 [-h] [-p prompt] [file-pattern]"
+ echo "usage: $(basename $0) [-h] [-p prompt] [file-pattern]"
exit 0;
;;
-p)
@@ -26,7 +26,7 @@ if ! type "$VIS_MENU" >/dev/null 2>&1; then
if [ ! -z "$DISPLAY" ] && type "dmenu" >/dev/null 2>&1; then
VIS_MENU="dmenu"
else
- echo "Neither slmenu nor dmenu found"
+ echo "Neither slmenu nor dmenu found" >&2
exit 1
fi
fi