From be3afdef9f6cdfe07c70432c093c8a3dcde9e0a2 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 24 Nov 2010 15:59:27 +0800 Subject: [PATCH] fix the wrong log.txt path, when using -l option Signed-off-by: Xiangfu Liu --- data/qi_lb60/scripts/reflash_ben.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/qi_lb60/scripts/reflash_ben.sh b/data/qi_lb60/scripts/reflash_ben.sh index 727605aa5..034318d54 100755 --- a/data/qi_lb60/scripts/reflash_ben.sh +++ b/data/qi_lb60/scripts/reflash_ben.sh @@ -11,9 +11,6 @@ VERSION="latest" # working directory WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}" -# where the verbose output goes to -LOG_FILE="${WORKING_DIR}/log.txt" - # URL to images ($URL/$VERSION/$[images]) BASE_URL_HTTP="http://downloads.qi-hardware.com/software/images/NanoNote/Ben" @@ -63,6 +60,9 @@ Please report bugs to developer@lists.qi-hardware.com" esac done +# where the verbose output goes to +LOG_FILE="${WORKING_DIR}/log.txt" + # create working directory mkdir -p ${WORKING_DIR} # purge logfile if exists