Changeset 2291


Ignore:
Timestamp:
Mar 15, 2013, 9:58:10 AM (6 years ago)
Author:
matthijs
Message:

usb-modeswitch: Prevent "0: not found" error.

A variable was incremented, but the result was then (unintentionally)
executed as a command, leading to the above error in logread. By writing
the increment differently, this should no longer occur.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/usb-modeswitch/files/modeswitch.hotplug

    r2290 r2291  
    103103                        [ -f "$conf" ] || break
    104104                        configs="${configs:+$configs }$conf"
    105                         $((candidates++))
     105                        candidates=$((candidates+1))
    106106                done
    107107
Note: See TracChangeset for help on using the changeset viewer.