* commit 'd66054056311a369a090cd1aae2557454fdc7ecc': Envsetup: Cygwin doesn't have 'ps -o command'.
This commit is contained in:
commit
de50d0ab20
1 changed files with 9 additions and 7 deletions
16
envsetup.sh
16
envsetup.sh
|
@ -1106,13 +1106,15 @@ function set_java_home() {
|
|||
fi
|
||||
}
|
||||
|
||||
case `ps -o command -p $$` in
|
||||
*bash*)
|
||||
;;
|
||||
*)
|
||||
echo "WARNING: Only bash is supported, use of other shell would lead to erroneous results"
|
||||
;;
|
||||
esac
|
||||
if [ "x$SHELL" != "x/bin/bash" ]; then
|
||||
case `ps -o command -p $$` in
|
||||
*bash*)
|
||||
;;
|
||||
*)
|
||||
echo "WARNING: Only bash is supported, use of other shell would lead to erroneous results"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Execute the contents of any vendorsetup.sh files we can find.
|
||||
for f in `/bin/ls vendor/*/vendorsetup.sh vendor/*/*/vendorsetup.sh device/*/*/vendorsetup.sh 2> /dev/null`
|
||||
|
|
Loading…
Reference in a new issue