Upload-Scripts/deb-upload

19 lines
627 B
Plaintext
Raw Normal View History

2024-04-23 14:57:38 +00:00
#!/bin/bash
2024-04-29 15:55:18 +00:00
key=$(sed -n 1p keys.txt)
if [[ -f $1 ]]; then
curl --user Archive:$key --upload-file $1 https://gitea.henriserverack.com/api/packages/Archive-Team/debian/pool/bullseye/main/upload
echo "Upload Complete"
elif [[ -d $1 ]]; then
for file in "$1"/*; do
if [[ -f "$file" ]]; then
curl --user Archive:$key --upload-file $file https://gitea.henriserverack.com/api/packages/Archive-Team/debian/pool/bullseye/main/upload
echo "uploaded $file"
fi
if [[ -d "$file" ]]; then
iterate "$file"
echo "skipping over $file"
fi
done
fi