From 215556acc86e88d1e9d0709ed1bfb4e5d9e046c0 Mon Sep 17 00:00:00 2001 From: Richard Goodwin Date: Tue, 30 Oct 2018 15:31:27 -0500 Subject: [PATCH] Make HEADLESS variable check local --- setup/pi/create-backingfiles-partition.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/pi/create-backingfiles-partition.sh b/setup/pi/create-backingfiles-partition.sh index 170c873..c0ae689 100644 --- a/setup/pi/create-backingfiles-partition.sh +++ b/setup/pi/create-backingfiles-partition.sh @@ -1,9 +1,10 @@ #!/bin/bash -eu -HEADLESS_SETUP=${HEADLESS_SETUP:-false} + function setup_progress () { SETUP_LOGFILE=/boot/teslausb-headless-setup.log + HEADLESS_SETUP=${HEADLESS_SETUP:-false} if [ $HEADLESS_SETUP = "true" ] then echo "$( date ) : $1" >> "$SETUP_LOGFILE"