forked from M-Labs/rust-fatfs
Make create-test-img.sh more portable.
This commit is contained in:
parent
9d3780f859
commit
cffa875d34
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
OUT_DIR=../resources
|
OUT_DIR=../resources
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ create_test_img() {
|
|||||||
mkfs.vfat -s 1 -F $fatSize -n "Test!" -i 12345678 "$name"
|
mkfs.vfat -s 1 -F $fatSize -n "Test!" -i 12345678 "$name"
|
||||||
mkdir -p mnt
|
mkdir -p mnt
|
||||||
sudo mount -o loop "$name" mnt -o rw,uid=$USER,gid=$USER
|
sudo mount -o loop "$name" mnt -o rw,uid=$USER,gid=$USER
|
||||||
for i in {1..1000}; do
|
for i in $(seq 1 1000); do
|
||||||
echo "Rust is cool!" >>"mnt/long.txt"
|
echo "Rust is cool!" >>"mnt/long.txt"
|
||||||
done
|
done
|
||||||
echo "Rust is cool!" >>"mnt/short.txt"
|
echo "Rust is cool!" >>"mnt/short.txt"
|
||||||
|
Loading…
Reference in New Issue
Block a user