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:
parent
228075aab1
commit
0fd043a4c1
3
kiss
3
kiss
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user