#!/bin/bash # SPDX-License-Identifier: LGPL-2.1-or-later set -e if [ -z "$(ls --almost-all "pkg/$PKG_SUBDIR")" ] || [ -f "pkg/$PKG_SUBDIR/.git" ]; then git submodule sync "pkg/$PKG_SUBDIR" git submodule update --init "pkg/$PKG_SUBDIR" fi