Skip to content

Commit 1bfb5d5

Browse files
committed
GRMLBASE/98-clean-chroot: avoid relying on /dev/fd
Not available when grml-live runs inside mmdebstrap.
1 parent 050a03e commit 1bfb5d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/scripts/GRMLBASE/98-clean-chroot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ nuke(){
110110

111111
# set all files in the given directories to a length of zero
112112
zero(){
113+
find "$@" -type f -size +0 -not -name \*.ini -print0 2>/dev/null | \
113114
while IFS= read -r -d '' file ; do
114115
:> "$file"
115-
done < <(find "$@" -type f -size +0 -not -name \*.ini -print0 2>/dev/null)
116+
done
116117
}
117118

118119
echo "Removing possible leftovers from update-pciids runs"

0 commit comments

Comments
 (0)