提供用户输入,直到输入d/D/r/R为止。

#!/bin/bash

while [ 1 ]; do

echo -n "(D)ebug or (R)elease?"
read select_build_type

if [[ $select_build_type = "D" || $select_build_type = "d" ]]; then
   echo "======================"
   echo "Build In Debug Type !"
   echo "======================"
   break
fi

if [[ $select_build_type = "R" || $select_build_type = "r" ]]; then
   echo "======================"
   echo "Build In Release Type !"
   echo "======================"
   break
fi

done

 

相关文章:

  • 2021-07-01
  • 2021-11-20
  • 2021-09-14
  • 2022-12-23
  • 2021-12-14
  • 2022-01-12
  • 2021-08-03
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-12-25
相关资源
相似解决方案