From: Jonathan Brassow Date: Tue, 26 Jun 2012 03:25:46 +0000 (-0500) Subject: TEST (lvconvert-raid): localize a function variable X-Git-Tag: v2_02_97~62 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7168880caa5f09da254e930313c2d59547643bb2;p=lvm2.git TEST (lvconvert-raid): localize a function variable Function was overwriting a global variable because it used a variable of the same name without first declaring it with 'local'. --- diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh index e7df16492..6c289a86b 100644 --- a/test/shell/lvconvert-raid.sh +++ b/test/shell/lvconvert-raid.sh @@ -60,6 +60,7 @@ is_in_sync_() { # wait_for_sync wait_for_sync_() { + local i for i in {1..100} ; do is_in_sync_ $1 && return sleep 1