Only strip .git directory from end of url

This commit is contained in:
Jose Diaz-Gonzalez committed 2016-04-12 19:13:45 -04:00
1 parent 67d7a64a51
commit ae3aae9af8
1 file changed
+1 -1
+1 -1
View File
@@ -77,5 +77,5 @@ uninstall_plugin() {
plugin_name() {
declare desc="default plugin name"
local PLUGIN_GIT_URL="$1"
echo "$PLUGIN_GIT_URL" | awk -F '/' '{ print $NF }' | sed -e "s:.git::g" | sed 's:^dokku-::'
echo "$PLUGIN_GIT_URL" | awk -F '/' '{ print $NF }' | sed -e "s:.git$::g" | sed 's:^dokku-::'
}