Merge "envsetup: fix for provision to work on zsh"

am: 4eb44e7a41

* commit '4eb44e7a41666f019cba812943e7e13987bc20cc':
  envsetup: fix for provision to work on zsh
This commit is contained in:
Marie Janssen 2015-11-11 20:05:50 +00:00 committed by android-build-merger
commit 02156d1469
1 changed files with 2 additions and 1 deletions

View File

@ -1520,7 +1520,8 @@ function provision()
echo "" echo ""
echo "ALL DATA ON THE DEVICE WILL BE IRREVOCABLY ERASED." echo "ALL DATA ON THE DEVICE WILL BE IRREVOCABLY ERASED."
echo "" echo ""
read -p "Are you sure you want to do this (yes/no)? " echo -n "Are you sure you want to do this (yes/no)? "
read
if [[ "${REPLY}" != "yes" ]] ; then if [[ "${REPLY}" != "yes" ]] ; then
echo "Not taking any action. Exiting." >&2 echo "Not taking any action. Exiting." >&2
return 1 return 1