Remove package sources and host only the expected SHA-256 (#3)
Reviewed-on: #3 Co-authored-by: Scott E. Graves <scott.e.graves@protonmail.com> Co-committed-by: Scott E. Graves <scott.e.graves@protonmail.com>
This commit was merged in pull request #3.
This commit is contained in:
21
clean_packages.sh
Executable file
21
clean_packages.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR=$(realpath "$0")
|
||||
CURRENT_DIR=$(dirname "${CURRENT_DIR}")
|
||||
|
||||
pushd "${CURRENT_DIR}"
|
||||
|
||||
mapfile -t FILE_LIST < <(find support/3rd_party/ -type f \( -name '*.gz' -o -name '*.bz2' -o -name '*.xz' -o -name '*.msi' -o -name '*.zip' \))
|
||||
|
||||
for NAME in "${FILE_LIST[@]}"; do
|
||||
echo "Removing ${NAME}"
|
||||
rm -f "${NAME}"
|
||||
done
|
||||
|
||||
mapfile -t FILE_LIST < <(find support/3rd_party/mingw64/ -type f \( -name '*.exe' \))
|
||||
for NAME in "${FILE_LIST[@]}"; do
|
||||
echo "Removing ${NAME}"
|
||||
rm -f "${NAME}"
|
||||
done
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user