|
@@ -0,0 +1,31 @@
|
|
|
+Subject: tang-show-keys: Probe for curl first
|
|
|
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
|
|
|
+Date: 2024-05-31
|
|
|
+Forwarded: not-needed
|
|
|
+
|
|
|
+--- a/doc/tang-show-keys.1.adoc
|
|
|
++++ b/doc/tang-show-keys.1.adoc
|
|
|
+@@ -24,6 +24,9 @@
|
|
|
+ <PORT> is the port that the Tang server is listening on on localhost.
|
|
|
+ It defaults to 80.
|
|
|
+
|
|
|
++This program requires curl. It might be necessary to install that
|
|
|
++beforehand.
|
|
|
++
|
|
|
+ == AUTHOR
|
|
|
+
|
|
|
+ Marius Vollmer <marius.vollmer@redhat.com>
|
|
|
+--- a/src/tang-show-keys
|
|
|
++++ b/src/tang-show-keys
|
|
|
+@@ -25,6 +25,11 @@
|
|
|
+ exit 1
|
|
|
+ fi
|
|
|
+
|
|
|
++if ! command -v curl >/dev/null; then
|
|
|
++ echo "Fatal: The curl program is needed but not installed"
|
|
|
++ exit 1
|
|
|
++fi
|
|
|
++
|
|
|
+ port=${1-80}
|
|
|
+
|
|
|
+ if test -n "$2"; then
|