Vendored in mo and working on a script to update vendored deps. This framework will be vendored into my other shell projects/microservices. Vendor management automation is critical.

This commit is contained in:
2025-07-15 10:52:45 -05:00
parent 7eb4f7d23a
commit 6d339d55d4

19
DevEx/UpdateGitVendor.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#git vendor list|grep @
#DSR-Pipeline-Server@main:
#mo@master:
export GIT_VENDOR_LIST
GIT_VENDOR_LIST="$(git vendor list|grep @|egrep 'main|master')"
IFS=$'\n\t'
for GIT_VENDOR in ${GIT_VENDOR_LIST[@]}; do
export VENDOR_NAME
VENDOR_NAME="$(echo $GIT_VENDOR|awk -F '@' '{print $1}')"
echo Vendor Name: $VENDOR_NAME
export VENDOR_REF
VENDOR_REF="$(echo $GIT_VENDOR|awk -F '@' '{print $2}'| sed 's/\://g')"
echo Vendor Ref: $VENDOR_REF
done