Correct errors in bin/install_plugins output

This commit is contained in:
Bruno Sutic 2015-07-31 23:23:57 +02:00
parent 40ba8e58dc
commit 58877eea8d
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ fi
clone() {
local plugin="$1"
cd "$SHARED_TPM_PATH" &&
GIT_TERMINAL_PROMPT=0 git clone --recursive $plugin
GIT_TERMINAL_PROMPT=0 git clone --recursive "$plugin" >/dev/null 2>&1
}
# tries cloning:

View File

@ -57,7 +57,8 @@ reload_tmux_environment() {
plugin_already_installed() {
local plugin="$1"
local plugin_path="$(shared_plugin_path "$plugin")"
cd "$plugin_path" &&
[ -d "$plugin_path" ] &&
cd "$plugin_path" &&
git remote >/dev/null 2>&1
}