Skip to contentSkip to conversation

Fix a typo in lopartsetup

PATCH New Géza Gémes 2 participants 3 messages Mar 25, 2017 – Mar 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a typo in lopartsetup

Unfortuntely my latest patch fixinf lopartsetup had two typos, which have fixed each other. Unfortunately only one of them got fixed, causing lopartsetup to misbehave. This patch fixes the other typo too.

Géza Gémes (1):
Fix a typo in lopartsetup

 scripts/lopartsetup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 1/1 Fix a typo in lopartsetup

---
 scripts/lopartsetup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lopartsetup +1 -1
index da28b6e..e35b755 100755
@@ -59,7 +59,7 @@ if [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units = " | wc -l` -eq 1 ]
 then
     unitstring="^Units = "
     column=9
-else if [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units:" | wc -l` -eq 1 ]
+elif [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units:" | wc -l` -eq 1 ]
 then
     unitstring="^Units:"
     column=8
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
Quoted 1 line · Géza Gémes

Thank you for the quick fix, committed.

Quoted 20 lines
---
 scripts/lopartsetup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lopartsetup +1 -1
index da28b6e..e35b755 100755
@@ -59,7 +59,7 @@ if [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units = " | wc -l` -eq 1 ]
 then
     unitstring="^Units = "
     column=9
-else if [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units:" | wc -l` -eq 1 ]
+elif [ `fdisk -lu $filename 2>/dev/null | grep -e "^Units:" | wc -l` -eq 1 ]
 then
     unitstring="^Units:"
     column=8
Signature · 1 line
2.7.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel