snark/requirements.sh

30 lines
413 B
Bash
Raw Permalink Normal View History

2023-05-19 16:31:43 +03:00
#!/bin/bash
set -e
apt-get update
apt-get install -y sudo
for dir in ./*/
do
2023-05-13 21:45:44 +03:00
if [[ $dir == *'snark'* ]]
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"
fi
cd ..
fi
cd ..
fi
done