Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1678694
  • 博文数量: 391
  • 博客积分: 8464
  • 博客等级: 中将
  • 技术积分: 4589
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 15:12
个人简介

狮子的雄心,骆驼的耐力,孩子的执著!

文章分类

全部博文(391)

文章存档

2023年(4)

2018年(9)

2017年(13)

2016年(18)

2014年(7)

2013年(29)

2012年(61)

2011年(49)

2010年(84)

2009年(95)

2008年(22)

分类: LINUX

2016-12-20 14:48:38

#!/bin/bash

/bin/stty intr ''
echo "newa"
echo "newb"
echo "newc"
echo "newd"
while read -p "input the repository name[input 'end' to exit] ?" repos
do
if [ "$repos" = "newa" ];then

echo "input newa"

continue
elif [ "$repos" = "newb" ];then

echo "input newb"

continue
elif [ "$repos" = "newc" ];then

echo "input newc"

continue
elif [ "$repos" = "newd" ];then

echo "input newd"

elif [ "$repos" = "end" ];then
echo "login out"
break
else
echo "no such repository"
fi
done
exit
阅读(987) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~