Compare commits

..
17 Commits
Author SHA1 Message Date
BlubbFish 1512aaadd8 new utils 2026-08-04 14:37:59 +02:00
BlubbFish 4da5d08d2e new commits in util libarays 2026-08-04 12:29:27 +02:00
BlubbFish 543a0ead60 update utils 2021-04-10 01:19:52 +02:00
BlubbFish 0a8f8564f5 „update.sh“ ändern 2020-09-16 16:24:38 +02:00
BlubbFish 1219212726 Update update.sh 2020-06-15 16:52:31 +02:00
BlubbFish cfbfd53015 update utils 2019-12-25 23:48:40 +01:00
BlubbFish eea28bb0fb Update Utils 2019-12-04 20:17:49 +01:00
BlubbFish cbf79b8ec9 Update utils 2019-11-28 17:42:37 +01:00
BlubbFish 02b04760ac Update dependencies 2019-05-30 15:05:16 +02:00
BlubbFish 1d8a1b93c9 Update Bot-Utils, ConnectorDataMqtt and Utils-IoT 2019-05-27 17:26:19 +02:00
BlubbFish a6a0da2b93 update Bot-Utils 2019-04-21 15:46:43 +02:00
BlubbFish 0f5e7b5c01 update Bot-Utils 2019-04-15 21:18:32 +02:00
BlubbFish 0c359fa896 Update Bot-Utils 2019-04-14 17:23:44 +02:00
BlubbFish e325e28bcb update Bot-Utils 2019-04-03 23:53:18 +02:00
BlubbFish 4a5d427835 update Bot-Utils 2019-04-03 20:53:34 +02:00
BlubbFish 8a19394d72 update Bot-Utils 2019-04-02 23:31:36 +02:00
BlubbFish f3b87d9b38 update Bot-Utils 2019-04-01 18:15:29 +02:00
13 changed files with 56 additions and 20 deletions
+12
View File
@@ -19,3 +19,15 @@
[submodule "Utils-IoT"] [submodule "Utils-IoT"]
path = Utils-IoT path = Utils-IoT
url = http://git.blubbfish.net/vs_utils/Utils-IoT.git 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
Submodule ConnectorDataGpsd added at 4dff73eb68
+1
Submodule ConnectorDbMysql added at dde495e2ff
+1 -1
Submodule Utils updated: c313994aeb...7f3f3a7b89
+33 -13
View File
@@ -1,19 +1,39 @@
#!/bin/bash
function look_for_update() { function look_for_update() {
if [[ $1 == ./.* ]] || [[ $1 == "." ]]; then if [[ $1 == ./.git ]] || [[ $1 == "." ]]; then
return echo "Ignore $1"
fi return
printf -v quotedFile '%q' "$1" fi
if [[ -f $quotedFile/update.sh ]]; then WithoutPrefix=$(echo -n $1 | cut -c 2-)
echo "Switch to subdir $1 and run update.sh" if grep -qx "$WithoutPrefix" .gitignore; then
cd "$1" echo "Ignore $1, because it's in .gitignore"
bash -c ./update.sh return
else fi
echo "Pull $quotedFile" printf -v FolderNameEscaped '%q' "$1"
cd "$1" if [[ -f $1/update.sh ]]; then
git pull 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 fi
} }
export -f look_for_update export -f look_for_update
find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \; find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \;
read -p "Press return"
if [ -z $1 ]; then
read -p "Press return"
fi