snark/requirements.sh
2023-05-22 22:52:32 +03:00

30 lines
413 B
Bash
Executable File

#!/bin/bash
set -e
apt-get update
apt-get install -y sudo
for dir in ./*/
do
if [[ $dir == *'snark'* ]]
then
cd "$dir"
if [[ $(find -type d -name "ci") ]]
then
cd ci
if [[ -f "requirements.sh" ]]; then
echo "executing sub"
bash -c "./requirements.sh"
fi
cd ..
fi
cd ..
fi
done