Don't use 'local' builtin outside of a function.
authorZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 20:01:44 +0000 (20:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 20:01:44 +0000 (20:01 -0000)
svn path=/main/trunk/; revision=12300

bin/prepstrip

index 50153102e13070817d04e69109285be035e3cb2e..3e447331458e735bce18f6fcd988bc792fc24f12 100755 (executable)
@@ -84,7 +84,7 @@ if ! hasq binchecks ${RESTRICT} && \
        scanelf -yqRBF '#k%F' -k '!.symtab' "$@" | sed -e "s#^$D##" > "$log"
        if [[ -n $QA_PRESTRIPPED && -s $log && \
                ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then
-               local shopts=$-
+               shopts=$-
                set -o noglob
                for x in $QA_PRESTRIPPED ; do
                        sed -e "s#^${x#/}\$##" -i "$log"