diff options
-rwxr-xr-x | builder/build-initramfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 51ae5ddf..432df5fa 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -39,7 +39,7 @@ if [ ! -e "$_repo_dir" ]; then git submodule init # try to clone submodules as shallowy as possible, since we cannot just # use '--depth 1' on submodules residing on non-master branches... - for mod in $(awk '$1 == "[submodule" {gsub(/"|]/,"",$2); print $2}' .gitmodules); do + for mod in $(grep -Po '(?<=^\[submodule ")([^"]+)' .gitmodules); do url="$(git config -f .gitmodules --get submodule.${mod}.url)" path="$(git config -f .gitmodules --get submodule.${mod}.path)" branch="$(git config -f .gitmodules --get submodule.${mod}.branch)" |