Files
packages/update.sh
T
Cappy Ishihara e1d58b6099 debug
2022-10-17 14:46:08 +07:00

26 lines
490 B
Bash
Executable File

#!/bin/bash -x
echo :: ensurepip
python -m ensurepip
echo :: python modules
python -m pip install -r requirements.txt
search() {
for folder in $1/*; do
if [ -f "$folder/chkupdate.py" ]; then
echo :: $folder
(cd $folder && python chkupdate.py)
continue
fi
x=0
for thing in $folder/*; do
[[ -f $thing ]] && x=1 && break
done
[[ $x -eq 1 ]] && search $folder
done
}
search anda
exit 0