Compare commits
18
Commits
f100cf0965
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1512aaadd8 | ||
|
|
4da5d08d2e | ||
|
|
543a0ead60 | ||
|
|
0a8f8564f5 | ||
|
|
1219212726 | ||
|
|
cfbfd53015 | ||
|
|
eea28bb0fb | ||
|
|
cbf79b8ec9 | ||
|
|
02b04760ac | ||
|
|
1d8a1b93c9 | ||
|
|
a6a0da2b93 | ||
|
|
0f5e7b5c01 | ||
|
|
0c359fa896 | ||
|
|
e325e28bcb | ||
|
|
4a5d427835 | ||
|
|
8a19394d72 | ||
|
|
f3b87d9b38 | ||
|
|
3e791e2543 |
+12
@@ -19,3 +19,15 @@
|
||||
[submodule "Utils-IoT"]
|
||||
path = Utils-IoT
|
||||
url = http://git.blubbfish.net/vs_utils/Utils-IoT.git
|
||||
[submodule "ConnectorDataGpsd"]
|
||||
path = ConnectorDataGpsd
|
||||
url = https://git.blubbfish.net/vs_utils/ConnectorDataGpsd.git
|
||||
[submodule "ConnectorDbMysql"]
|
||||
path = ConnectorDbMysql
|
||||
url = https://git.blubbfish.net/vs_utils/ConnectorDbMysql.git
|
||||
[submodule "ConnectorStorageInflux"]
|
||||
path = ConnectorStorageInflux
|
||||
url = https://git.blubbfish.net/vs_utils/ConnectorStorageInflux.git
|
||||
[submodule "ConnectorStorageJson"]
|
||||
path = ConnectorStorageJson
|
||||
url = https://git.blubbfish.net/vs_utils/ConnectorStorageJson.git
|
||||
|
||||
+1
-1
Submodule Bot-Utils updated: 031076b3ba...21662a367e
Submodule
+1
Submodule ConnectorDataGpsd added at 4dff73eb68
+1
-1
Submodule ConnectorDataMosquitto updated: 9596c46a2e...c29ea883a4
+1
-1
Submodule ConnectorDataMqtt updated: e8812fa80b...5357b57489
Submodule
+1
Submodule ConnectorDbMysql added at dde495e2ff
Submodule
+1
Submodule ConnectorStorageInflux added at a890cbae9b
Submodule
+1
Submodule ConnectorStorageJson added at da0d3614a3
+1
-1
Submodule ConnectorUserTelegram updated: b498114f48...75f53ca419
+1
-1
Submodule Iot-Interfaces updated: f5be5cbb7c...39525791cb
+1
-1
Submodule Utils updated: c313994aeb...7f3f3a7b89
+1
-1
Submodule Utils-IoT updated: 4a9afc8ec2...8348185272
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
function look_for_update() {
|
||||
if [[ $1 == ./.git ]] || [[ $1 == "." ]]; then
|
||||
echo "Ignore $1"
|
||||
return
|
||||
fi
|
||||
WithoutPrefix=$(echo -n $1 | cut -c 2-)
|
||||
if grep -qx "$WithoutPrefix" .gitignore; then
|
||||
echo "Ignore $1, because it's in .gitignore"
|
||||
return
|
||||
fi
|
||||
printf -v FolderNameEscaped '%q' "$1"
|
||||
if [[ -f $1/update.sh ]]; then
|
||||
echo "Switch to subdir $1 and run update.sh"
|
||||
cd "$1"
|
||||
git pull
|
||||
bash -c "./update.sh nobreak"
|
||||
else
|
||||
if [[ -f $1/.git ]]
|
||||
then
|
||||
echo "Pull $1"
|
||||
cd "$1"
|
||||
git pull
|
||||
else
|
||||
echo "Checkout master for $1"
|
||||
git submodule update --init -- "$1"
|
||||
cd "$1"
|
||||
git checkout master
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
export -f look_for_update
|
||||
find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \;
|
||||
|
||||
if [ -z $1 ]; then
|
||||
read -p "Press return"
|
||||
fi
|
||||
Reference in New Issue
Block a user