commit ef2baedd9e2b6ad918438264787b93808a2f59cc (patch)
parent 49ef973cf441e8934e5efa4a6a3f0e3818ff5340
Author: Alex Karle <alex@alexkarle.com>
Date: Fri, 9 Sep 2022 22:17:19 -0400
acme: Remove logger(1) calls from `openpr`
Can you tell I was having a hard time debugging the point at which
the plumb call was failing? :P
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/bin/openpr b/bin/openpr
@@ -6,17 +6,12 @@ die() {
exit 1
}
-[ -z "$1" ] && logger "openpr-die" && die "usage: openpr NUM"
-logger "openpr: $1"
+[ -z "$1" ] && die "usage: openpr NUM"
-logger "openpr-wdir: $wdir"
-logger `pwd`
num=${1###}
-logger "openpr-num: $num"
url=$(git remote get-url origin | sed -e 's/^git@//' -e 's@:@/@' -e 's/\.git$//')
-logger "openpr-url: $url"
[ -z "$url" ] && die "not in a repo?"
${BROWSER:-firefox} "https://$url/pull/$num"