Skip to content

Commit

Permalink
Merge pull request #90 from dokku/skip-non-git
Browse files Browse the repository at this point in the history
Ignore plugins that do not have a .git directory
  • Loading branch information
josegonzalez committed May 19, 2022
2 parents a5092a2 + 6b9db08 commit 188b4bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions bashenv/plugn.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ update() {
declare plugin="$1" committish="$2"
[[ ! -d "$PLUGIN_PATH/available/$plugin" ]] && echo "Plugin ($plugin) not installed" && exit 1
pushd "$PLUGIN_PATH/available/$plugin" &>/dev/null
[[ ! -d ".git" ]] && echo "Plugin ($plugin) not managed by git" && exit 0
[[ -z "$committish" ]] && [[ ! $(git symbolic-ref HEAD) ]] && echo "Plugin pinned to $(< ./.plugin_committish)" && exit 0
git checkout master &> /dev/null
git pull &> /dev/null
Expand Down
10 changes: 5 additions & 5 deletions bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 188b4bf

Please sign in to comment.