You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Color table
|
|
|
|
CPurple='\e[0;35m'
|
|
|
|
CWhite='\e[1;37m'
|
|
|
|
CNone='\e[0m'
|
|
|
|
|
|
|
|
# Invoke shell if build fails.
|
|
|
|
apt-get install -y --force-yes vim less bash mc ack
|
|
|
|
cd /tmp/buildd/*/debian/..
|
|
|
|
echo "${CPurple}---------------------------------------------------------${CNone}" >/dev/tty
|
|
|
|
echo "${CPurple} !!! Build FAILED !!! ${CNone}" >/dev/tty
|
|
|
|
echo "${CPurple} You are now inside a shell in the building environment. ${CNone}" >/dev/tty
|
|
|
|
echo "${CWhite} mc, vim, less, ack${CPurple} are available for your convenience. ${CNone}" >/dev/tty
|
|
|
|
echo "${CPurple} Type ${CWhite}exit${CPurple} to leave the shell when you are done. ${CNone}" >/dev/tty
|
|
|
|
echo "${CPurple}---------------------------------------------------------${CNone}" >/dev/tty
|
|
|
|
/bin/bash </dev/tty >/dev/tty 2>/dev/tty
|
|
|
|
|