Skip to content

Commit

Permalink
Adjust command to work on macosx.
Browse files Browse the repository at this point in the history
  • Loading branch information
weetmuts committed Aug 24, 2023
1 parent 6964dd7 commit 0d5410d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generate_filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maxdepth=5
rndname()
{
len=$((($RANDOM % 32)+1));
cat /dev/urandom | tr -dc "[:alpha:]" | head -c $len
cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w $len | head -n 1
}

createdir()
Expand All @@ -25,7 +25,7 @@ createfs()
then
numsubdirs=$((($RANDOM % 3)));
numfiles=$((($RANDOM % 32)));

i=0
while [ $i -lt $numfiles ]
do
Expand All @@ -34,7 +34,7 @@ createfs()
dd if=/dev/urandom of="$currdir/$name" bs=$blocksize count=$len > /dev/null 2>&1
((i++))
done

i=0
while [ $i -lt $numsubdirs ]
do
Expand Down

0 comments on commit 0d5410d

Please sign in to comment.