zzLib/Scripts/copylibs.sh

20 lines
327 B
Bash
Raw Normal View History

2022-11-27 22:23:18 +00:00
#!/bin/bash
src="../zzLib/Libs"
start=".."
findterm="Libs/zzAddOn"
msg=$1
if [ -z $1 ]
then
msg="Update Libs"
fi
2022-11-27 22:23:18 +00:00
for entry in "$start"/*
do
if [ -e "$entry/$findterm" ]
then
echo "$entry"
cp -ra $src $entry
cd $entry
git commit "Libs/*" -m "$msg" && git push
cd -
2022-11-27 22:23:18 +00:00
fi
done