stormbytes

Untitled

Jun 1st, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. 1. parse ARGV
  2.  
  3. 2. ls /etc/*usb*
  4. - if devices found
  5. ports = devices array
  6.  
  7. 3. check ARGV for '-i' flag
  8. - if -i flag found
  9. console.log(ARGV[i])
  10. exit
  11.  
  12. 4. return devices array (from step 1)
Advertisement
Add Comment
Please, Sign In to add comment