#30 Remove an extraneous sudo execution
Merged 3 months ago by pwhalen. Opened 3 months ago by lkundrak.
lkundrak/arm-image-installer lr/extra-sudo  into  master

file modified
+2 -2

@@ -385,9 +385,9 @@ 

  	fi

  	

  	if [ "$(echo $IMAGE | grep -i 'armhfp')" = "" ]; then

- 		FS_TYPE=$(sudo blkid "$ROOTPART" | cut -d'"' -f 4)

+ 		FS_TYPE=$(blkid "$ROOTPART" | cut -d'"' -f 4)

  	else

- 		FS_TYPE=$(sudo blkid "$ROOTPART" | cut -d'"' -f 6)

+ 		FS_TYPE=$(blkid "$ROOTPART" | cut -d'"' -f 6)

  	fi

  

  	if [ "$FS_TYPE" = "xfs" ] && [ "$LVM_NAME" != "" ]; then

We already verify that we're uid 0 in the beginning.

Pull-Request has been merged by pwhalen

3 months ago
Metadata