# HG changeset patch # User Paul Bissex # Date 1593139565 14400 # Thu Jun 25 22:46:05 2020 -0400 # Node ID ab1bab41d0968b27d30b21d944240e5ebcf1cf5b # Parent c3b4147afbed2c49000a1c4c83e39432d2af64ab minor fixups diff --git a/dpaste.sh b/dpaste.sh --- a/dpaste.sh +++ b/dpaste.sh @@ -3,8 +3,8 @@ # Usage info show_help() { cat << HELP -Usage: ${0#*/} [-h] [-s SYNTAX] [-t TITLE] [-p POSTER] [-e EXPIRY] -Send stdin to dpaste.com, optionally with syntax/title/poster/expiry specified. +Usage: $(basename $0) [-h] [-s SYNTAX] [-t TITLE] [-p POSTER] [-e EXPIRY] +Send stdin to dpaste.com, optionally setting syntax/title/poster/expiry. Resulting item will be opened in your browser. HELP } @@ -39,7 +39,8 @@ # make the API call url=$(curl -s -F "content=<-" $params http://dpaste.com/api/v2/) -echo -e "---\n$url" +echo "---" +echo $url # open in browser if [ -x "$(command -v xdg-open)" ];