From 0b98aaa996d12bc8f8d3e7a789fad0f69a0dad02 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 28 Sep 2024 21:15:42 +0200 Subject: [PATCH] tabs --- py.pi.sh | 68 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/py.pi.sh b/py.pi.sh index 6d6bb43..2116578 100755 --- a/py.pi.sh +++ b/py.pi.sh @@ -48,40 +48,40 @@ download \ prefix="Name: " for wheel in "${root}/"*; do - echo - echo "${wheel}" - file="$(basename "${wheel}")" - case "${file}" in - *.tar.gz) - short="${file%.*}" - short="${short%.*}" - ;; - *.whl) - short="${file%.*}" - ;; - esac - file_name="$(echo "${short}" | cut -d "-" -f 1)" - file_version="$(echo "${short}" | cut -d "-" -f 2)" - case "${file}" in - *.tar.gz) - meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO" - tar xf "${wheel}" -C "${tmp}" "${meta_data}" - ;; - *.whl) - meta_data="${file_name}-${file_version}.dist-info/METADATA" - unzip "${wheel}" "${meta_data}" -d "${tmp}" - ;; - esac - name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")" - echo "${name}" - name="$(echo "${name}" | tr "[:upper:]" "[:lower:]")" - name="$(echo "${name}" | tr "." "-")" - name="$(echo "${name}" | tr "_" "-")" - name="$(echo "${name}" | tr -d "\r")" - echo "${name}" - sub="${root}/simple/${name}" - mkdir --parents "${sub}" - mv -i "${root}/${file_name}-"* "${sub}/" + echo + echo "${wheel}" + file="$(basename "${wheel}")" + case "${file}" in + *.tar.gz) + short="${file%.*}" + short="${short%.*}" + ;; + *.whl) + short="${file%.*}" + ;; + esac + file_name="$(echo "${short}" | cut -d "-" -f 1)" + file_version="$(echo "${short}" | cut -d "-" -f 2)" + case "${file}" in + *.tar.gz) + meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO" + tar xf "${wheel}" -C "${tmp}" "${meta_data}" + ;; + *.whl) + meta_data="${file_name}-${file_version}.dist-info/METADATA" + unzip "${wheel}" "${meta_data}" -d "${tmp}" + ;; + esac + name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")" + echo "${name}" + name="$(echo "${name}" | tr "[:upper:]" "[:lower:]")" + name="$(echo "${name}" | tr "." "-")" + name="$(echo "${name}" | tr "_" "-")" + name="$(echo "${name}" | tr -d "\r")" + echo "${name}" + sub="${root}/simple/${name}" + mkdir --parents "${sub}" + mv -i "${root}/${file_name}-"* "${sub}/" done rm --force --recursive "${tmp}"