summaryrefslogtreecommitdiff
path: root/classes/devshell.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-05-11 11:43:28 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-05-11 11:43:28 +0000
commit2e2348dbf283fe186a7e45a4823b56fed70d47f0 (patch)
tree586f91780899e3f2f41e64643eba97353f8ab535 /classes/devshell.bbclass
parenta037a35927c14aa47fcff56fbf25c07ea77f2b94 (diff)
devshell.bbclass, patch.bbclass: Check exit code of TERMCMD* commands to see if they were found at all.
* Fixes #2274.
Diffstat (limited to 'classes/devshell.bbclass')
-rw-r--r--classes/devshell.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/devshell.bbclass b/classes/devshell.bbclass
index 06152ef8bc..09ce100fc4 100644
--- a/classes/devshell.bbclass
+++ b/classes/devshell.bbclass
@@ -6,6 +6,10 @@ do_devshell[nostamp] = "1"
devshell_do_devshell() {
export TERMWINDOWTITLE="Bitbake Developer Shell"
${TERMCMD}
+ if [ $? -eq 127 ]; then
+ echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
+ exit 1
+ fi
}
addtask devshell after do_patch