diff --git a/bin/executable_get-gitlab-shortcode-as-markdown b/bin/executable_get-gitlab-shortcode-as-markdown index b406ea9..062934b 100644 --- a/bin/executable_get-gitlab-shortcode-as-markdown +++ b/bin/executable_get-gitlab-shortcode-as-markdown @@ -1,6 +1,9 @@ #!/usr/bin/env bash url="${1}" +if [ -z "${url}" ]; then + url=$(wl-paste) +fi; shortcode=$(get-gitlab-shortcode "${url}") markdown="[${shortcode}](${url})" echo $markdown | wl-copy