#!/bin/bash
echo "1:更新"
echo "2:提交"
echo "3:添加新文件,输入添加的文件路径"
read -p "请输入1/2/3):" name
if [[ $name = 1 ]];then
    svn update  /Users/python/Desktop/WiFi/
elif [[ $name = 2 ]];then
    svn commit -m "" /Users/python/Desktop/WiFi/
elif [[ $name = 3 ]];then
    read -p "输入添加的路径:" pat
    echo $pat
    read -p "y:" c
    if [[ $c = y ]];then
        svn add $pat
        svn commit -m "" /Users/python/Desktop/WiFi/
    fi
else
    echo "认真点"
    exit
fi