1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

kiss: Fix tar issue with top-level files. Closes #285

This commit is contained in:
Dylan Araps 2021-10-22 08:23:02 +03:00
parent 228075aab1
commit 0fd043a4c1
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

3
kiss
View File

@ -479,6 +479,9 @@ pkg_source_tar() {
# Iterate over all directories in the first level of the
# tarball's manifest. Each directory is moved up a level.
while IFS=/ read -r dir _; do case ${dir#.} in *?*)
# Skip entries which aren't directories.
[ -d "$dir" ] || continue
# Move the parent directory to prevent naming conflicts
# with the to-be-moved children.
mv -f "$dir" "$KISS_PID-$dir"