Skip to content

Commit

Permalink
feat(plugin): update plugin repo with plugin-update command
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoHsu committed May 26, 2021
1 parent 33a1e95 commit 924e64b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/commands/command-plugin-update.bash
Expand Up @@ -6,6 +6,8 @@ plugin_update_command() {
exit 1
fi

update_plugins_repository

local plugin_name="$1"
local gitref="${2}"

Expand Down
3 changes: 1 addition & 2 deletions lib/utils.bash
Expand Up @@ -401,8 +401,7 @@ initialize_or_update_repository() {
printf "initializing plugin repository..."
git clone "$repository_url" "$repository_path"
elif repository_needs_update; then
printf "updating plugin repository..."
(cd "$repository_path" && git fetch && git reset --hard origin/master)
update_plugins_repository
fi

mkdir -p "$(asdf_data_dir)/tmp"
Expand Down

0 comments on commit 924e64b

Please sign in to comment.