08335 / hivui-platform-template
hivui平台项目模板
Newer
Older
hivui-platform-template / build / bin / sync.sh
caibinghong on 22 Sep 2021 add
# 同步hi-ui
# 同步modules
# 同步login、main

# 工号,项目

if [ $# -gt 4 ] ; then
    echo "$3 操作命令有误,请重新输入!"
    exit 1
fi

# basePath='/opt/eap5/desktop'
basePath='/eap5.0/desktop'
tagPath=$basePath'/preview'
# tmpPath=$basePath'/project-template'
tmpPath='/eap5.0/hiruntime/project/desktop/project-template'
workName=$1
projectName=$2
oper=$3
uploadPath=$4

function read_dir(){
    for file in `ls $1`
    do
        if [ -d $1"/"$file ]  
        then
            read_dir $1"/"$file
        else
            echo $1"/"$file
        fi
    done
}

if [ $3 = "sync" ] ; then
    read_dir "${tagPath}/${workName}"
fi