Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge "Envsetup: Cygwin doesn't have 'ps -o command'."
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf-at-android authored and Android Code Review committed Jun 22, 2011
2 parents 04b963a + 70a86b0 commit 169c19c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1077,13 +1077,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`
Expand Down

0 comments on commit 169c19c

Please sign in to comment.