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
8fa589
        cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1
fd88ec
        git fetch || return 1
8fa589
        git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) || return 1
e14835
    else
8fa589
        git clone "$PK_URL" $PK_GIT_OPTIONS || return 1
e14835
    fi
e14835
}