Added split-package functionality and the create-repository-data script for unpac repository creation

This commit is contained in:
CapCreeperGR committed 2024-07-12 15:35:55 +00:00
1 parent d077b13a3f
commit 190a670cff
4 files changed
+177 -67

No files matched your search

+7 -1
View File
@@ -23,7 +23,7 @@ if [[ ! "$output" =~ ^[a-z.A-Z0-9_-]{1,}$ ]]; then
fi
type="binary"
toCompress=("pkg.info")
toCompress=()
echo "Creating package with the name $output..."
@@ -74,6 +74,12 @@ else
exit 1
fi
for pkginfo in ./pkg.inf*; do
pkginfo=$(basename "$pkginfo")
echo "${pkginfo} file found"
toCompress+=("$pkginfo")
done
echo "Creating $type package as $output"
tar -c --owner=0 --group=0 --no-same-owner -zf "$output" "${toCompress[@]}"