From 20894a23692b9191de09e448d6e046adf44b707c Mon Sep 17 00:00:00 2001 From: blueswirl Date: Sun, 22 May 2011 16:39:48 +0000 Subject: [PATCH] switch-arch: remove non-standard "local" keyword Remove the non-standard "local" keyword from within the crosscflags() function. This was not necessary since the variables "host" and "target" were not clobbered anywhere outside of the function, but the real motivation is to support shells such as ksh93 that do not have the "local" builtin like bash. Signed-off-by: Kenneth Salerno Signed-off-by: Blue Swirl git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@1040 f158a5a8-5612-0410-a976-696ce0be7e32 --- config/scripts/switch-arch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch index 087ec79..1e630da 100755 --- a/config/scripts/switch-arch +++ b/config/scripts/switch-arch @@ -19,8 +19,8 @@ fi crosscflags() { - local host=$1 - local target=$2 + host=$1 + target=$2 if test "$host" = "powerpc" -o "$host" = "ppc" \ -o "$host" = "mips" -o "$host" = "s390" \ -- 2.11.4.GIT