From 424194d4bd5b7e81a1d67c63bda7a53953b2df34 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 15 Nov 2011 12:38:24 -0500 Subject: [PATCH] drop pointless loop We just reassign the data to itself in the loop, and then break after reading one line. --- spark | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spark b/spark index 585c076..d3a77c8 100755 --- a/spark +++ b/spark @@ -139,18 +139,13 @@ if test "$1" != "" then data="$1" else - data='' - # check to see if stdin's a tty if [ -t 0 ]; then help exit fi - while read data; do - data=$data - break - done + read data fi setup_array $data