1-get-initial-setup-working #2
2
setup.sh
2
setup.sh
@ -92,7 +92,7 @@ function we_have_exactly_one_part () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_drive_id () {
|
function get_drive_id () {
|
||||||
declare drive_id
|
local drive_id
|
||||||
drive_id="$(find -L /dev/disk/by-id -samefile "${1:?}")"
|
drive_id="$(find -L /dev/disk/by-id -samefile "${1:?}")"
|
||||||
if [[ "$(wc -l <<<"${drive_id}")" -eq '1' ]] && [[ "$(wc -c <<<"${drive_id}")" -gt '1' ]]; then
|
if [[ "$(wc -l <<<"${drive_id}")" -eq '1' ]] && [[ "$(wc -c <<<"${drive_id}")" -gt '1' ]]; then
|
||||||
printf -- '%s' "${drive_id}"
|
printf -- '%s' "${drive_id}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user