bin/update
changeset 14 b883ef452cd8
parent 13 7d02a07e0354
child 15 e517ad3376f7
equal deleted inserted replaced
13:7d02a07e0354 14:b883ef452cd8
   267 }
   267 }
   268 
   268 
   269 ## bin wrappers
   269 ## bin wrappers
   270 function update_serial {
   270 function update_serial {
   271     local serial=$1; shift
   271     local serial=$1; shift
   272     local old=$(cat $serial)
   272     
       
   273     local old=$(test -e $serial && cat $serial || echo '')
   273 
   274 
   274     log_info "Updating serial: $serial"
   275     log_info "Updating serial: $serial"
   275 
   276 
   276     cmd $UPDATE_SERIAL $* $serial
   277     cmd $UPDATE_SERIAL $* $serial
   277     
   278