diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-07-09 14:52:03 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-07-09 14:52:03 +0200 |
commit | a19a85b6bec2b23d475e9f8c3498f6ca78636542 (patch) | |
tree | 3efd0be17fa9006ad88ea5e5ef5bbbc01ac935ee /pbuilder/hooks/C10shell | |
parent | 01b092026554f084c056ef8698217a0eadee0fa9 (diff) |
Copy pbuilder sample hooks from doc dir of pbuilder package.
Diffstat (limited to 'pbuilder/hooks/C10shell')
-rwxr-xr-x | pbuilder/hooks/C10shell | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pbuilder/hooks/C10shell b/pbuilder/hooks/C10shell new file mode 100755 index 0000000..6fa0cb6 --- /dev/null +++ b/pbuilder/hooks/C10shell @@ -0,0 +1,8 @@ +#!/bin/bash +# example file to be used with --hookdir +# +# invoke shell if build fails. +BUILDDIR="${BUILDDIR:-/tmp/buildd}" +apt-get install -y "${APTGETOPT[@]}" vim less +cd "$BUILDDIR"/*/debian/.. +/bin/bash < /dev/tty > /dev/tty 2> /dev/tty |