tazinst rev 90

tazinst: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 29 08:45:28 2017 +0200 (18 months ago)
parents d3fec3a9d379
children 494ae7666b3e
files tazinst
line diff
     1.1 --- a/tazinst	Sun Jul 23 13:52:28 2017 +0200
     1.2 +++ b/tazinst	Fri Sep 29 08:45:28 2017 +0200
     1.3 @@ -1498,7 +1498,7 @@
     1.4  disknum()
     1.5  {
     1.6  	local partition="$(uuid2dev $1)"
     1.7 -	partition="${partition%[0-9]}"
     1.8 +	partition="${partition%%[0-9]*}"
     1.9  	/usr/sbin/parted -lms 2>&1 | grep "^/dev" | \
    1.10  		/bin/busybox awk -v PART="$partition" '{if (match($0,PART)) print NR-1}'
    1.11  }
    1.12 @@ -1507,7 +1507,7 @@
    1.13  partnum()
    1.14  {
    1.15  	local partition="$(uuid2dev $1)"
    1.16 -	printf "%s\n" "$((${partition#/dev/[h-s]d[a-z]}-1))"
    1.17 +	printf "%s\n" "$((${partition#/dev/[hs]d[a-z]}-1))"
    1.18  }
    1.19  
    1.20  # print root device