modify
This commit is contained in:
22
func.sh
22
func.sh
@@ -6,10 +6,20 @@ function sub_akt() {
|
||||
new_sub_url="$2"
|
||||
pro_be_cut=${new_sub_url##*/}
|
||||
sub_name=${pro_be_cut::-4}
|
||||
echo "git checkout $1"
|
||||
echo "git submodule set-url $sub_name $new_sub_url"
|
||||
echo "git submodule update --init --recursive --remote $sub_name"
|
||||
echo "git add .gitmodules"
|
||||
echo "git commit -m 'Submodul aktualisiert'"
|
||||
echo "git push"
|
||||
old_sub_path=""
|
||||
#echo "git checkout $1"
|
||||
i=0
|
||||
for path_check in $(git config --file=.gitmodules --get-regexp path|awk '{print $2}'); do
|
||||
new_sub_path="$3"
|
||||
if [ $path_check = $new_sub_path ]; then
|
||||
echo "$path_check = $new_sub_path"
|
||||
#echo "git submodule set-url $sub_name $new_sub_url"
|
||||
#echo "git submodule update --init --recursive --remote $sub_name"
|
||||
#echo "git add .gitmodules"
|
||||
#echo "git commit -m 'Submodul aktualisiert'"
|
||||
#echo "git push"
|
||||
else
|
||||
echo "keine übereinstimmung"
|
||||
fi
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user