From 016b8f76a986b2ca9a5abd811dab8bb3ea2c1d1d Mon Sep 17 00:00:00 2001 From: robin Date: Mon, 17 May 2021 12:08:36 +0200 Subject: [PATCH] Add Commit/Push for Libs, less verbose for cp --- scripts/cp_broker.sh | 4 ++-- scripts/cp_libs.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/cp_broker.sh b/scripts/cp_broker.sh index 5377620..d6c0f9c 100755 --- a/scripts/cp_broker.sh +++ b/scripts/cp_broker.sh @@ -5,7 +5,7 @@ for val in "${StringArray[@]}"; do if [ -e ../$val ] then echo $val - cp -vra ../$val . + cp -ra ../$val . fi done -cp -vra Libs zz_Skeleton \ No newline at end of file +cp -ra Libs zz_Skeleton \ No newline at end of file diff --git a/scripts/cp_libs.sh b/scripts/cp_libs.sh index c2f409f..c043ac7 100755 --- a/scripts/cp_libs.sh +++ b/scripts/cp_libs.sh @@ -7,7 +7,8 @@ do if [ -e "$entry/$findterm" ] then echo "$entry" - cp -vra $src $entry + cp -ra $src $entry + cd $entry + git commit "Libs/*" -m "Update Libs" && git push fi -done - +done \ No newline at end of file