aboutsummaryrefslogtreecommitdiff
path: root/urlinfo
diff options
context:
space:
mode:
Diffstat (limited to 'urlinfo')
-rwxr-xr-xurlinfo10
1 files changed, 7 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