Skip to content

Commit

Permalink
v6.15
Browse files Browse the repository at this point in the history
+ DietPi-Drive_Manager | Syntax fix: In "[[ $string == '<pattern>' ]]", inside single (and double) quotes, braces are taken literally.
  • Loading branch information
MichaIng authored Sep 9, 2018
1 parent 3c92068 commit daa6ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dietpi/dietpi-drive_manager
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ aDRIVE_ISPARTITIONTABLE ${aDRIVE_ISPARTITIONTABLE[$i]}

#$1 = dev source
local drive=${1#/dev/}
if [[ $drive == '[sh]d'* ]]; then
if [[ $drive == [sh]d* ]]; then

echo ${drive%[0-9]}

Expand Down

0 comments on commit daa6ab6

Please sign in to comment.