Merge pull request #281 from gedankenexperimenter/fmt/indentation

Consistent indentation of kaleidoscope-builder & co
pull/284/head
Jesse Vincent 7 years ago committed by GitHub
commit 9189e6f536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,22 +5,23 @@ use strict;
my $vid = shift;
my $pid = shift;
my $prefix = '/dev/serial/by-id/';
my @paths= `ls $prefix`;
my @paths = `ls $prefix`;
my %devices;
for my $path (@paths) {
chomp($path);
next unless -l $prefix. $path;
next unless -l $prefix . $path;
my @data = `udevadm info -q property --name=${prefix}${path}`;
for my $line (@data) {
chomp ($line);
my ($key,$val) = split(/=/,$line,2);
chomp($line);
my ( $key, $val ) = split( /=/, $line, 2 );
$devices{$path}{$key} = $val;
}
if (($devices{$path}{'ID_VENDOR_ID'} == $vid) &&
($devices{$path}{'ID_MODEL_ID'} == $pid) ) {
if ( ( $devices{$path}{'ID_VENDOR_ID'} == $vid )
&& ( $devices{$path}{'ID_MODEL_ID'} == $pid ) )
{
if ($devices{$path}{'ID_MM_CANDIDATE'}) {
if ( $devices{$path}{'ID_MM_CANDIDATE'} ) {
warn "Yikes. ModemManager wants to pwn your keyboard";
}

@ -1,3 +1,5 @@
# -*- shell-script -*-
## NEEDS: LIBRARY, SKETCH, ROOT, SOURCEDIR
## Should be included when the current directory is the dir of the Sketch.

Loading…
Cancel
Save