genfio: Don't use cat EOF for small prints
[fio.git] / tools / genfio
index 49cbd5032b7a51773fc1ff8ed65953cd65fb54dc..0bc24cb1d475e43d413b50c3c488cd6ae14c6865 100755 (executable)
@@ -92,21 +92,15 @@ EOF
 }
 
 finish_template() {
-cat >>$TEMPLATE <<EOF
-iodepth=$IODEPTH
-EOF
+echo "iodepth=$IODEPTH" >> $TEMPLATE
 
 if [ "$RUNTIME" != "0" ]; then
-cat >>$TEMPLATE << EOF
-runtime=$RUNTIME
-time_based
-EOF
+       echo "runtime=$RUNTIME" >> $TEMPLATE
+       echo "time_based" >> $TEMPLATE
 fi
 
 if [ "$CACHED_IO" = "FALSE" ]; then
-cat >>$TEMPLATE << EOF
-direct=1
-EOF
+       echo "direct=1" >> $TEMPLATE
 fi
 }