Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gaomd/3621171 to your computer and use it in GitHub Desktop.
Save gaomd/3621171 to your computer and use it in GitHub Desktop.
some `minor` fix
#!/bin/bash
TEAM=/zhihuDev
GROUP=$TEAM/sa
YES="havefun"
SORRY="sorry"
read -t 5 -p "Enter ur name" you
read -n1 -p "Is geek? [Y/N]" personality
read -t 5 -p "Skills:" skills
read -t 5 -p "Interests:" interests
ZhihuDev(){
do
case $personality in
geek)
echo "personality: $YES" >> $GROUP/$you 2>&1 ;;
*)
return $SORRY ;;
esac
case $skills in
awk|nginx|mysql|nagios|keepalive|haproxy|kvm|puppet|debian|ubuntu|centos)
echo "skills: $YES" >> $GROUP/$you 2>&1 ;;
*)
return $SORRY ;;
esac
case $interests in
performance|hight\ availability|security|cluster|distributed)
echo "interests: $YES" >> $GROUP/$you 2>&1 ;;
*)
return $SORRY ;;
esac
done
}
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment