Blame docker-builder-data/build/script/include/inc-pkdownload-git.sh

e14835
e14835
# PK_URL
e14835
# PK_DIRNAME
980907
# PK_GIT_OPTIONS
e14835
e14835
pkdownload() {
e14835
    if [ -d "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME/.git" ]; then
e14835
        cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME"
e14835
        if ! git pull; then
e14835
            return 1
e14835
        fi
e14835
    else
980907
        if ! git clone "$PK_URL" $PK_GIT_OPTIONS; then
e14835
            return 1
e14835
        fi
e14835
    fi
e14835
}