aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-02-20 08:01:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-02-20 08:01:33 -0300
commit85ef0c76775ec400794cb0daeb97b4d38118a6c2 (patch)
tree32f52e650f28a28c7d7c5329b7650c9824bc08b5
parent4df464ed28d6b912b5cd363904a0f06fa7c3f71b (diff)
downloadscripts-85ef0c76775ec400794cb0daeb97b4d38118a6c2.tar.gz
scripts-85ef0c76775ec400794cb0daeb97b4d38118a6c2.tar.bz2
Feat: adds urlmd
-rwxr-xr-xurlinfo10
l---------urlmd1
2 files changed, 8 insertions, 3 deletions
diff --git a/urlinfo b/urlinfo
index cde32fa..2d6a287 100755
--- a/urlinfo
+++ b/urlinfo
@@ -34,6 +34,10 @@ else
fi
# Display
-echo "- title: \"$DESC\""
-echo " identifier:"
-echo " - $IDENTIFIER"
+if [ "$BASENAME" == "urlinfo" ]; then
+ echo "- title: \"$DESC\""
+ echo " identifier:"
+ echo " - $IDENTIFIER"
+elif [ "$BASENAME" == "urlmd" ]; then
+ echo "[$TITLE]($URL)"
+fi
diff --git a/urlmd b/urlmd
new file mode 120000
index 0000000..ea81d70
--- /dev/null
+++ b/urlmd
@@ -0,0 +1 @@
+urlinfo \ No newline at end of file