发表于 2018-9-18 07:01:37

处理git库文件

#!/bin/bash  
SRC="aosp"
  
DEST="test"
  
TEMP_DIR="TEMP"
  
function init()
  
{
  
    for FILE_LIST in `cat /tmp/path`;
  
    do
  
      if [ ! -d $DEST/$FILE_LIST.git ]; then
  
            git clone --mirror$TEMP_DIR/$FILE_LIST $DEST/$FILE_LIST.git
  fi
  
    done
  
}
  

  
function text()
  
{
  
    grep -r "
页: [1]
查看完整版本: 处理git库文件