sketch2pose / src /scripts /prepare.sh
kbrodt's picture
Upload prepare.sh
a0bb2a7
raw
history blame
248 Bytes
#!/usr/bin/env sh
# set -euo pipefail
v=$(python -c 'import sys; v = sys.version_info; print(f"{v.major}.{v.minor}")')
for p in patches/*.diff; do
patch -p0 -d/home/user < <(sed -e 's/venv/.local/' -e "s/python3.10/python${v}/" "${p}")
done