mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-05 03:31:32 +02:00
[nanonote-files] reflash_ben.sh: fix -d using correct path
This commit is contained in:
parent
bfff7c1cb2
commit
cb0fb36a9d
@ -30,11 +30,12 @@ do
|
|||||||
case $OPTIONS in
|
case $OPTIONS in
|
||||||
d)
|
d)
|
||||||
VERSION=$OPTARG # override version by first argument if passed
|
VERSION=$OPTARG # override version by first argument if passed
|
||||||
|
WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}"
|
||||||
;;
|
;;
|
||||||
l)
|
l)
|
||||||
WORKING_DIR=$OPTARG
|
|
||||||
PROTOCOL="file"
|
PROTOCOL="file"
|
||||||
VERSION="Local"
|
VERSION="local"
|
||||||
|
WORKING_DIR=$OPTARG
|
||||||
;;
|
;;
|
||||||
b)
|
b)
|
||||||
ALL="FALSE"
|
ALL="FALSE"
|
||||||
@ -143,8 +144,6 @@ progress_finish () {
|
|||||||
cat "${LOG_FILE}.err" >> "${LOG_FILE}"
|
cat "${LOG_FILE}.err" >> "${LOG_FILE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$(whoami)" == "root" ] || abort "this script must be run as root"
|
|
||||||
|
|
||||||
log "working dir: ${WORKING_DIR}"
|
log "working dir: ${WORKING_DIR}"
|
||||||
log "chosen method: ${PROTOCOL}"
|
log "chosen method: ${PROTOCOL}"
|
||||||
test ${VERSION} && log "chosen version: ${VERSION}"
|
test ${VERSION} && log "chosen version: ${VERSION}"
|
||||||
|
Loading…
Reference in New Issue
Block a user