Fix pasting issue

This commit is contained in:
Colin Hebert 2025-03-23 11:45:31 +11:00
parent a2d282d483
commit 34b59acc95
No known key found for this signature in database

View File

@ -282,7 +282,7 @@ if [[ "${OSName}" == "linux-gnu"* ]]; then
find "$root_path" -type f -not -path '*/.zfs/*' -exec stat --printf '%d:%i|%n\n' {} \; > files_list.txt
elif [[ "${OSName}" == "darwin"* ]] || [[ "${OSName}" == "freebsd"* ]]; then
# Mac OS and FreeBSD
find "$root_path" -type f -not -path '*/.zfs/*' -exec sh -c 'stat -f "%d:%i|%N" "$0"' {} \; {} \; > files_list.txt
find "$root_path" -type f -not -path '*/.zfs/*' -exec sh -c 'stat -c "%d:%i|%N" "$0"' {} \; > files_list.txt
else
echo "Unsupported OS type: $OSTYPE"
exit 1