diff --git a/bin/executable_get-gitlab-shortcode-as-markdown b/bin/executable_get-gitlab-shortcode-as-markdown index b774015..b406ea9 100644 --- a/bin/executable_get-gitlab-shortcode-as-markdown +++ b/bin/executable_get-gitlab-shortcode-as-markdown @@ -1,7 +1,6 @@ -#!/usr/bin/env ruby +#!/usr/bin/env bash -url = ARGV.first.strip -shortcode=`get-gitlab-shortcode #{url}`.strip -markdown = "[#{shortcode}](#{url})" -puts markdown -`wl-copy #{markdown}` +url="${1}" +shortcode=$(get-gitlab-shortcode "${url}") +markdown="[${shortcode}](${url})" +echo $markdown | wl-copy