Hong-Phuc Bui
2026-10-16 1cc72dc6c04b93ee51386c615a2a9a6b953c7343
Grrrr
1 files added
23 ■■■■■ changed files
01-0-intro-url-path/deploy.sh 23 ●●●●● patch | view | raw | blame | history
01-0-intro-url-path/deploy.sh
New file
@@ -0,0 +1,23 @@
sync_git() {
    SRC=$1
    DEST=$2
    echo $SRC
    echo $DEST
    mkdir -p $DEST
    ls $DEST
    rsync -aHAXxv --numeric-ids --delete --progress --exclude='.git' \
        --exclude='.gitignore' \
        --exclude='*/target' \
        --exclude='.idea' \
        --exclude='deploy.sh' \
        --exclude='.venv' \
        --exclude='site' \
        $SRC $DEST
    git -C $DEST add .
    git -C $DEST commit -a -m "Commit Datum: $(date --iso-8601=seconds)"
    git -C $DEST push origin main
}
sync_git ./ ../../codeberg.page/kurswinkel/