forked from openkylin/platform_build
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
This commit is contained in:
parent
a23a97e3bf
commit
4afc2c0f6f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue