diff options
author | Marie Janssen | 2015-11-10 12:41:15 -0600 |
---|---|---|
committer | Marie Janssen | 2015-11-10 12:41:15 -0600 |
commit | 4afc2c0f6faa37ae809469b15bf2016547599e27 (patch) | |
tree | ffd2f9c40d7716b295b3d976be0bafae9ddae035 /envsetup.sh | |
parent | a23a97e3bf77bdd7fa01cd1f681d758a943db63a (diff) | |
download | platform-build-4afc2c0f6faa37ae809469b15bf2016547599e27.tar.gz platform-build-4afc2c0f6faa37ae809469b15bf2016547599e27.tar.xz platform-build-4afc2c0f6faa37ae809469b15bf2016547599e27.zip |
envsetup: fix for provision to work on zsh
The -p option means something else on zsh and breaks this function.
Bug: None
Change-Id: Ie0ba8119e34c616f5b8f931806063d6b1d3d893e
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index c3e467c6c..45f70b3ba 100644 --- a/envsetup.sh +++ b/envsetup.sh | |||
@@ -1520,7 +1520,8 @@ function provision() | |||
1520 | echo "" | 1520 | echo "" |
1521 | echo "ALL DATA ON THE DEVICE WILL BE IRREVOCABLY ERASED." | 1521 | echo "ALL DATA ON THE DEVICE WILL BE IRREVOCABLY ERASED." |
1522 | echo "" | 1522 | echo "" |
1523 | read -p "Are you sure you want to do this (yes/no)? " | 1523 | echo -n "Are you sure you want to do this (yes/no)? " |
1524 | read | ||
1524 | if [[ "${REPLY}" != "yes" ]] ; then | 1525 | if [[ "${REPLY}" != "yes" ]] ; then |
1525 | echo "Not taking any action. Exiting." >&2 | 1526 | echo "Not taking any action. Exiting." >&2 |
1526 | return 1 | 1527 | return 1 |