From 0d378e905e4df6266d9fc9243e7ed735e12d839b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 26 Oct 2013 20:17:56 +0200 Subject: inst: cleanup installer making it not rely on path containing . always explicitely execute installer modules with ./name instead of relying that the path contians the dot. --- rc/bin/inst/partdisk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc/bin/inst/partdisk') diff --git a/rc/bin/inst/partdisk b/rc/bin/inst/partdisk index 35678a3c4..2604965c1 100755 --- a/rc/bin/inst/partdisk +++ b/rc/bin/inst/partdisk @@ -31,7 +31,7 @@ case go prompt $default 'Disk to partition' $disks disk=$rd - if(! hasmbr /dev/$disk/data) { + if(! ./hasmbr /dev/$disk/data) { echo 'The disk you selected HAS NO master boot record on its first sector.' echo '(Perhaps it is a completely blank disk.)' echo 'You need a master boot record to use the disk.' @@ -63,7 +63,7 @@ case checkdone mbrandplan9=0 disks=`{ls /dev/sd*/plan9 >[2]/dev/null | sed 's!/dev/(sd.*)/plan9!\1!'} for(disk in $disks) { - if(hasmbr /dev/$disk/data) + if(./hasmbr /dev/$disk/data) mbrandplan9=1 } if(~ $mbrandplan9 0){ -- cgit v1.2.3