forked from kiss-community/kiss
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
|
# Iterate over all directories in the first level of the
|
||||||
# tarball's manifest. Each directory is moved up a level.
|
# tarball's manifest. Each directory is moved up a level.
|
||||||
while IFS=/ read -r dir _; do case ${dir#.} in *?*)
|
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
|
# Move the parent directory to prevent naming conflicts
|
||||||
# with the to-be-moved children.
|
# with the to-be-moved children.
|
||||||
mv -f "$dir" "$KISS_PID-$dir"
|
mv -f "$dir" "$KISS_PID-$dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user