Update sub projects and add update.sh
This commit is contained in:
parent
b6356f2fff
commit
3e18ac1049
2
Builds
2
Builds
@ -1 +1 @@
|
|||||||
Subproject commit 1185c2bfe7af58138257ba78fff7016945e91b6b
|
Subproject commit 7c04d391e663200d50ba0642cd0c94ed065d835c
|
2
Librarys
2
Librarys
@ -1 +1 @@
|
|||||||
Subproject commit 831c3dfc54e2f2f5481d2f2b4f193dcfe226ff7f
|
Subproject commit e73ef2504c16967cec7d7aa7a5b9cc22364c77c7
|
2
Lora
2
Lora
@ -1 +1 @@
|
|||||||
Subproject commit d1aa806c371cce356ec4e3698784cc061b6c93e5
|
Subproject commit 827d369ca6c5c4690c6de16f5a40cec6d1375c87
|
2
Lora-Bot
2
Lora-Bot
@ -1 +1 @@
|
|||||||
Subproject commit 6c06b32a00898f5fef7257c34370d037b8da1fc1
|
Subproject commit 7fbd6efd0678ebf875107e195064589ec13af8ac
|
2
Utils
2
Utils
@ -1 +1 @@
|
|||||||
Subproject commit f100cf0965c609e3381414cd3e8a62b464bdff98
|
Subproject commit 3e791e25432138fa78532a8ae6bf4eb3d39b8b54
|
2
mqtt-map
2
mqtt-map
@ -1 +1 @@
|
|||||||
Subproject commit c90a3113202285f2ff44c4da0d20667982e60b4d
|
Subproject commit 4444b97d3bf021ea5cbe4b5c4d8e62b7a6afb73c
|
19
update.sh
Normal file
19
update.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
function look_for_update() {
|
||||||
|
if [[ $1 == ./.* ]] || [[ $1 == "." ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
printf -v quotedFile '%q' "$1"
|
||||||
|
if [[ -f $quotedFile/update.sh ]]; then
|
||||||
|
echo "Switch to subdir $1 and run update.sh"
|
||||||
|
cd "$1"
|
||||||
|
bash -c ./update.sh
|
||||||
|
else
|
||||||
|
echo "Pull $quotedFile"
|
||||||
|
cd "$1"
|
||||||
|
git pull
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
export -f look_for_update
|
||||||
|
find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \;
|
||||||
|
read -p "Press return"
|
Loading…
Reference in New Issue
Block a user