Date:2010-05-02 23:27:11 (13 years 7 months ago)
Author:Mirko Vogt
Commit:f2f94633da022ee6980db7ce5622db852d9addac
Message:function <log> should be defined before being called

Files: scripts/reflash_ben.sh (2 diffs)

Change Details

scripts/reflash_ben.sh
8989mkdir -p ${WORKING_DIR}
9090date > "${LOG_FILE}" # purge logfile if exists
9191
92function log() {
93    echo "$1"
94    echo "$1" >> "${LOG_FILE}"
95}
96
9297function abort() {
9398    log "$1"
9499    log "==="
...... 
96101    exit 1
97102}
98103
99function log() {
100    echo "$1"
101    echo "$1" >> "${LOG_FILE}"
102}
103
104104[ "$(whoami)" == "root" ] || abort "this script must be run as root"
105105
106106log "working dir: ${WORKING_DIR}"

Archive Download the corresponding diff file



interactive