2023-05-19 16:31:43 +03:00
|
|
|
#!/bin/bash
|
2023-05-13 20:05:22 +03:00
|
|
|
|
2023-05-22 20:18:58 +03:00
|
|
|
set -e
|
|
|
|
|
2023-05-13 20:05:22 +03:00
|
|
|
apt-get update
|
|
|
|
apt-get install -y sudo
|
|
|
|
|
|
|
|
for dir in ./*/
|
|
|
|
do
|
2023-05-13 21:45:44 +03:00
|
|
|
if [[ $dir == *'snark'* ]]
|
2023-05-13 20:05:22 +03:00
|
|
|
then
|
|
|
|
cd "$dir"
|
|
|
|
|
|
|
|
if [[ $(find -type d -name "ci") ]]
|
|
|
|
then
|
|
|
|
|
|
|
|
cd ci
|
2023-05-22 22:52:32 +03:00
|
|
|
if [[ -f "requirements.sh" ]]; then
|
|
|
|
echo "executing sub"
|
|
|
|
bash -c "./requirements.sh"
|
2023-05-22 21:57:46 +03:00
|
|
|
fi
|
2023-05-13 20:05:22 +03:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|