From cffa875d34b4e524a03a536fa2d6a40af126cf7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Sat, 21 Oct 2017 17:38:20 +0200 Subject: [PATCH] Make create-test-img.sh more portable. --- scripts/create-test-img.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-test-img.sh b/scripts/create-test-img.sh index acd048d..deaaa8c 100755 --- a/scripts/create-test-img.sh +++ b/scripts/create-test-img.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh OUT_DIR=../resources set -e @@ -10,7 +10,7 @@ create_test_img() { mkfs.vfat -s 1 -F $fatSize -n "Test!" -i 12345678 "$name" mkdir -p mnt 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" done echo "Rust is cool!" >>"mnt/short.txt"