modify
This commit is contained in:
6
main.sh
6
main.sh
@@ -13,7 +13,7 @@ if [ ! -d $clone_work_dir ]
|
||||
else echo "ERROR - $(date '+%Y-%m-%d %H:%M:%S') - $clone_work_dir konnte NICHT angelgt werden ERROR "; fi
|
||||
fi
|
||||
|
||||
while IFS="," read -r git_url new_sub_url
|
||||
while IFS="," read -r git_url new_sub_url new_sub_path
|
||||
do
|
||||
pro_be_cut=${git_url##*/}
|
||||
project_name=${pro_be_cut::-4}
|
||||
@@ -30,8 +30,8 @@ do
|
||||
for branch in $(git for-each-ref --format='%(refname)' refs/heads/)
|
||||
do
|
||||
git_pro_branch="${branch/'refs/heads/'/''}"
|
||||
echo "$project_name as $git_pro_branch"
|
||||
sub_akt $git_pro_branch $new_sub_url
|
||||
#echo "$project_name as $git_pro_branch"
|
||||
sub_akt $git_pro_branch $new_sub_url $new_sub_path
|
||||
|
||||
if [ $? -eq 0 ]; then echo "INFO - $(date '+%Y-%m-%d %H:%M:%S') - konnte $new_sub_url auf $git_pro_branch aktualisieren" >> $logfile
|
||||
else echo "ERROR - $(date '+%Y-%m-%d %H:%M:%S') - konnte NICHT $new_sub_url auf $git_pro_branch aktualisieren "; fi
|
||||
|
||||
Reference in New Issue
Block a user