mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Remove -l $logfile when listing avrdude commands
This commit is contained in:
@@ -164,7 +164,7 @@ emulated=0 # Is programmer dryrun or dryboot, ie, programmi
|
||||
# Execute args as command, set $elapsed and return exit value of command; don't call in a subshell
|
||||
execute () {
|
||||
if [[ $list_only -eq 1 ]]; then
|
||||
echo "\$ ${command[@]}" | tr -s " "
|
||||
echo "\$ ${command[@]}" | sed "s/ -l [^ ]* / /" | tr -s " "
|
||||
return 0;
|
||||
fi
|
||||
[[ $emulated -eq 0 && $elapsed != -1 ]] && sleep "$delay"
|
||||
@@ -225,7 +225,7 @@ for (( p=0; p<$arraylength; p++ )); do
|
||||
|
||||
if [ "$key" == '' ]; then
|
||||
FAIL=false
|
||||
avrdude=($avrdude_bin $avrdude_conf -qq ${pgm_and_target[$p]} -l $logfile)
|
||||
avrdude=($avrdude_bin -l $logfile $avrdude_conf -qq ${pgm_and_target[$p]})
|
||||
|
||||
# Get flash and EEPROM size in bytes and make sure the numbers are in dec form
|
||||
FLASH_SIZE=$(${avrdude[@]} -cdryrun -T 'part -m' 2>/dev/null | grep flash | awk '{print $2}')
|
||||
|
||||
Reference in New Issue
Block a user