Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- flash_arch_image.sh.bak 2017-11-14 16:57:34.000000000 +0200
- +++ flash_arch_image.sh 2018-03-03 14:49:10.883353392 +0200
- @@ -35,10 +35,10 @@
- }
- function find_devices {
- - if [[ $2 == disk && $4 == *"usb"* ]]
- + if [[ $2 == disk ]]
- then
- - printf "\n($index) $1 ($3): $5";
- - devices[$index]=$1
- + printf "\n($index) $1 ($3)";
- + devices[$index]=/dev/$1
- index=$(($index+1))
- fi
- }
- @@ -85,7 +85,7 @@
- index=0
- while read -r line;
- do find_devices $line
- - done < <(lsblk -p -l -o NAME,TYPE,VENDOR,SUBSYSTEMS,SIZE 2> /dev/null)
- + done < <(lsblk -l -o NAME,TYPE,SIZE 2> /dev/null)
- # No devices were found!
- if [[ index -eq 0 ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement