This commit is contained in:
zhangkun9038@dingtalk.com 2023-03-01 22:32:31 +08:00
parent 7b1e8a9fdc
commit f3c6a91fe8

View File

@ -53,15 +53,14 @@ function extractHere() {
sleep 5 sleep 5
md5Sum=$(md5sum $fileName) md5Sum=$(md5sum $fileName)
md5Sum="${md5Sum% *}" md5Sum="${md5Sum% *}"
mkdir ${projectName} || true
echo ${md5Sum} > ${projectName}/${preName}_md5.txt echo ${md5Sum} > ${projectName}/${preName}_md5.txt
} }
function init(){ function init(){
cd $workPath cd $workPath
if [ ! -f "$fileName" ];then if [ ! -f "$fileName" ];then
echo "file $fileName not exist! make a block file now!" echo "file $fileName not exist!"
echo "block" > $fileName exit 0
fi fi
if [ ! -d "$projectPath" ]; then if [ ! -d "$projectPath" ]; then
echo "path $projectPath exist! " echo "path $projectPath exist! "