Add command line message to pass to git

This commit is contained in:
Robin Hüskes 2022-12-02 15:54:02 +01:00
parent 5ad6c21986
commit 4ce4d05aa1
1 changed files with 7 additions and 1 deletions

8
Scripts/copylibs.sh Normal file → Executable file
View File

@ -2,6 +2,11 @@
src="../zzLib/Libs"
start=".."
findterm="Libs/zzAddOn"
msg=$1
if [ -z $1 ]
then
msg="Update Libs"
fi
for entry in "$start"/*
do
if [ -e "$entry/$findterm" ]
@ -9,6 +14,7 @@ do
echo "$entry"
cp -ra $src $entry
cd $entry
git commit "Libs/*" -m "Update Libs" && git push
git commit "Libs/*" -m "$msg" && git push
cd -
fi
done