aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-08-09 13:17:25 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-08-09 13:17:25 +0300
commit78d392b36076dccf1035f0b90e5dbdb2000433a3 (patch)
tree13b439c592607dcbc9ab69bea99a3b4d9796a40d
parent0b7b6a100b22f704e1c8aedcd4d53bbf167a751e (diff)
downloadalpine-conf-78d392b36076dccf1035f0b90e5dbdb2000433a3.tar.bz2
alpine-conf-78d392b36076dccf1035f0b90e5dbdb2000433a3.tar.xz
update-kernel: don't use local in non-function scope
-rw-r--r--update-kernel.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/update-kernel.in b/update-kernel.in
index ab7c528..fc0899d 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -205,7 +205,6 @@ extra_pkgs() {
_apk add --initdb --update-cache
if [ "$BUILDDIR" ]; then
- local _install
case "$ARCH" in
arm*|aarch64*) _install="zinstall dtbs_install" ;;
*) _install="install" ;;
@@ -264,8 +263,7 @@ fi
mv $STAGING/* "$DESTDIR"
if [ -d "$DTBDIR" ]; then
- local _opwd=$PWD
- local _dtb
+ _opwd=$PWD
case "$FLAVOR" in
rpi*) _dtb="$DESTDIR" ;;
*) _dtb="$DESTDIR/dtbs" ;;