Style fix

This commit is contained in:
Bruno Sutic
2021-08-14 11:00:04 +02:00
parent 38ab7d9ef7
commit 693e5a2a0f

View File

@@ -13,7 +13,8 @@ else # shell output functions
fi fi
clone() { clone() {
local plugin="$1" branch="$2" local plugin="$1"
local branch="$2"
if [ -n "$branch" ]; then if [ -n "$branch" ]; then
cd "$(tpm_path)" && cd "$(tpm_path)" &&
GIT_TERMINAL_PROMPT=0 git clone -b "$branch" --single-branch --recursive "$plugin" >/dev/null 2>&1 GIT_TERMINAL_PROMPT=0 git clone -b "$branch" --single-branch --recursive "$plugin" >/dev/null 2>&1
@@ -35,7 +36,8 @@ clone_plugin() {
# clone plugin and produce output # clone plugin and produce output
install_plugin() { install_plugin() {
local plugin="$1" branch="$2" local plugin="$1"
local branch="$2"
local plugin_name="$(plugin_name_helper "$plugin")" local plugin_name="$(plugin_name_helper "$plugin")"
if plugin_already_installed "$plugin"; then if plugin_already_installed "$plugin"; then