added
This commit is contained in:
15
func.sh
Normal file
15
func.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
function sub_akt() {
|
||||
#$1 ist Branch
|
||||
#$2 neue URLD
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user