]> gitweb.fluxo.info Git - scripts.git/commitdiff
Feat: adds urlmd
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Feb 2021 11:01:33 +0000 (08:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Feb 2021 11:01:33 +0000 (08:01 -0300)
urlinfo
urlmd [new symlink]

diff --git a/urlinfo b/urlinfo
index cde32fa34a6fbd9d271e9d06cae8edd06a2c4448..2d6a28764c63bb08af0edc9511c37530ba62f1aa 100755 (executable)
--- 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 (symlink)
index 0000000..ea81d70
--- /dev/null
+++ b/urlmd
@@ -0,0 +1 @@
+urlinfo
\ No newline at end of file