Date:2011-05-24 05:15:36 (3 years 6 months ago)
Author:Xiangfu Liu
Commit:cb0fb36a9ddfb0885eb2b0040435660ddcbcd812
Message:[nanonote-files] reflash_ben.sh: fix -d using correct path

Files: nanonote-files/data/qi_lb60/scripts/reflash_ben.sh (2 diffs)

Change Details

nanonote-files/data/qi_lb60/scripts/reflash_ben.sh
3030    case $OPTIONS in
3131    d)
3232        VERSION=$OPTARG # override version by first argument if passed
33        WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}"
3334        ;;
3435    l)
35        WORKING_DIR=$OPTARG
3636        PROTOCOL="file"
37        VERSION="Local"
37        VERSION="local"
38        WORKING_DIR=$OPTARG
3839        ;;
3940    b)
4041    ALL="FALSE"
...... 
143144    cat "${LOG_FILE}.err" >> "${LOG_FILE}"
144145}
145146
146[ "$(whoami)" == "root" ] || abort "this script must be run as root"
147
148147log "working dir: ${WORKING_DIR}"
149148log "chosen method: ${PROTOCOL}"
150149test ${VERSION} && log "chosen version: ${VERSION}"

Archive Download the corresponding diff file



interactive