From 74808c954193a4abfe1478947a4869eb7b480186 Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 30 Oct 2018 15:36:18 -0700 Subject: [PATCH] Make setup_logfile local to setup_progress --- setup/pi/setup-teslausb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/pi/setup-teslausb b/setup/pi/setup-teslausb index 5877020..4cdf3f2 100644 --- a/setup/pi/setup-teslausb +++ b/setup/pi/setup-teslausb @@ -13,10 +13,10 @@ then fi function setup_progress () { - SETUP_LOGFILE=/boot/teslausb-headless-setup.log + local setup_logfile=/boot/teslausb-headless-setup.log if [ $HEADLESS_SETUP = "true" ] then - echo "$( date ) : $1" >> "$SETUP_LOGFILE" + echo "$( date ) : $1" >> "$setup_logfile" fi echo $1 }