fix.sh in checkoff-0.153.0 vs fix.sh in checkoff-0.154.0
- old
+ new
@@ -254,12 +254,15 @@
if [ "$(uname)" == "Darwin" ]
then
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install "${homebrew_package}"
elif type apt-get >/dev/null 2>&1
then
- update_apt
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "${apt_package}"
+ if ! time dpkg -s "${apt_package}" >/dev/null
+ then
+ update_apt
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "${apt_package}"
+ fi
else
>&2 echo "Teach me how to install packages on this plaform"
exit 1
fi
}
@@ -361,9 +364,10 @@
# don't run if we're in the middle of a cookiecutter child project
# test, or otherwise don't have a Git repo to install hooks into...
if [ -d .git ]
then
bundle exec overcommit --install
+ bundle exec overcommit --sign pre-commit
else
>&2 echo 'Not in a git repo; not installing git hooks'
fi
}