Skip to content

Commit

Permalink
Fix read-only drives exclusion from drive list
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtpep committed Dec 17, 2014
1 parent 8623993 commit 8b7827a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ select-drive() {
local exclude_drive_paths=(`mounted-drive-path /`)
exclude_drive_paths+=(`echo "$parted_output" | grep -oP "(?<=^Warning: Unable to open ).*(?= read-write )" || :`)

local options=$(echo "$parted_output" | parse-drive-name | grep -v ") `IFS=\|; echo "${exclude_drive_paths[*]}"`$")
local options=($(echo "$parted_output" | parse-drive-name | grep -vP "\) `IFS=\|; echo "${exclude_drive_paths[*]}"`$"))
if [[ -z ${options:-} ]]; then
[[ -z ${is_quiet:-} ]] || return 0
fatal-error "No drives were found."
Expand Down

0 comments on commit 8b7827a

Please sign in to comment.