Skip to content

Instantly share code, notes, and snippets.

@ieure
Created November 9, 2010 19:47
Show Gist options
  • Save ieure/669685 to your computer and use it in GitHub Desktop.
Save ieure/669685 to your computer and use it in GitHub Desktop.
Drop this in /var/cache/pbuilder/hook.d and chmod it to 0755
#!/bin/bash
# example file to be used with --hookdir
#
# invoke shell if build fails.
apt-get install -y --force-yes vim less
cd /tmp/buildd/*/debian/..
/bin/bash < /dev/tty > /dev/tty 2> /dev/tty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment