mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
LIBMAN: tentatively fixed directory recognition in flatpak builder environment
This commit is contained in:
parent
919cad23ec
commit
0368aadcd3
|
@ -19,8 +19,10 @@ mkdir -p "$target_dir"
|
||||||
|
|
||||||
# Find and copy files
|
# Find and copy files
|
||||||
find "$1" -type f -exec sh -c '
|
find "$1" -type f -exec sh -c '
|
||||||
for file; do
|
target_dir="$1"
|
||||||
dest_file="$1/$(basename "$file")"
|
shift
|
||||||
|
for file in "$@"; do
|
||||||
|
dest_file="$target_dir/$(basename "$file")"
|
||||||
if [ ! -e "$dest_file" ]; then
|
if [ ! -e "$dest_file" ]; then
|
||||||
if cp "$file" "$dest_file"; then
|
if cp "$file" "$dest_file"; then
|
||||||
echo "Copied $file to $dest_file"
|
echo "Copied $file to $dest_file"
|
||||||
|
@ -31,4 +33,4 @@ find "$1" -type f -exec sh -c '
|
||||||
echo "Skipped $file as $dest_file already exists"
|
echo "Skipped $file as $dest_file already exists"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
' sh {} + "$target_dir"
|
' sh "$target_dir" {} +
|
||||||
|
|
Loading…
Reference in a new issue