os
This commit is contained in:
parent
37277d1dc2
commit
1b466b38aa
1 changed files with 10 additions and 6 deletions
|
@ -41,10 +41,12 @@ tmp="${root}/tmp"
|
|||
rm --force --recursive \
|
||||
~/.cache/pip "${root}"
|
||||
|
||||
for version in "3.12" "3.11" "3.10"; do
|
||||
for version in "os" "3.12" "3.11" "3.10"; do
|
||||
if [ "${version}" != "os" ]; then
|
||||
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||
export OLD_PATH="${PATH}"
|
||||
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||
fi
|
||||
|
||||
sub="${root}/${version}"
|
||||
|
||||
|
@ -92,8 +94,10 @@ for version in "3.12" "3.11" "3.10"; do
|
|||
mv -i "${sub}/${file_name}-"* "${simple}/"
|
||||
done
|
||||
|
||||
if [ "${version}" != "os" ]; then
|
||||
export PATH="${OLD_PATH}"
|
||||
unset OLD_PATH VIRTUAL_ENV
|
||||
fi
|
||||
done
|
||||
|
||||
rm --force --recursive "${tmp}"
|
||||
|
|
Loading…
Reference in a new issue