From cb0fb36a9ddfb0885eb2b0040435660ddcbcd812 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Tue, 24 May 2011 11:15:36 +0800 Subject: [PATCH] [nanonote-files] reflash_ben.sh: fix -d using correct path --- nanonote-files/data/qi_lb60/scripts/reflash_ben.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh index 6796a66..d20b6e8 100755 --- a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh +++ b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh @@ -30,11 +30,12 @@ do case $OPTIONS in d) VERSION=$OPTARG # override version by first argument if passed + WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}" ;; l) - WORKING_DIR=$OPTARG PROTOCOL="file" - VERSION="Local" + VERSION="local" + WORKING_DIR=$OPTARG ;; b) ALL="FALSE" @@ -143,8 +144,6 @@ progress_finish () { cat "${LOG_FILE}.err" >> "${LOG_FILE}" } -[ "$(whoami)" == "root" ] || abort "this script must be run as root" - log "working dir: ${WORKING_DIR}" log "chosen method: ${PROTOCOL}" test ${VERSION} && log "chosen version: ${VERSION}"