diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-08-22 22:17:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-08-22 22:18:39 +0100 |
commit | 795d7867feb4419892fc09fe352eb890ebf4d255 (patch) | |
tree | 5f3149f05d01cb66d55ebc528f37880d3fa80b88 /solenv | |
parent | d6cde02dbce8c28c6af836e2dc1120f8a6ef9932 (diff) |
check we have the environment sourced, and fail helpfully if not
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/ooinstall | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall index 56825e18e813..fd5791b23a43 100755 --- a/solenv/bin/ooinstall +++ b/solenv/bin/ooinstall @@ -16,6 +16,8 @@ $do_link = 0; $is_windows = 0; my $tmp_dir; +die "You need to source Env.Host.sh first " if (!defined $ENV{SRC_ROOT}); + if ($ENV{GUI} eq 'WNT') { $is_windows = 1; } |