fix greps
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m5s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m5s
This commit is contained in:
parent
65ecef155d
commit
ea269ffd99
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
8
|
9
|
@ -54,26 +54,26 @@ fi
|
|||||||
if [[ "$1" = "get_partitions" ]]
|
if [[ "$1" = "get_partitions" ]]
|
||||||
then
|
then
|
||||||
lsblk -ln -o NAME,TYPE | grep -E "part|crypt|lvm" | awk '{print $1}' | while read i ; do
|
lsblk -ln -o NAME,TYPE | grep -E "part|crypt|lvm" | awk '{print $1}' | while read i ; do
|
||||||
if lsblk -ln -o NAME,TYPE | grep "$i" | grep "crypt" > /dev/null 2>&1
|
if lsblk -ln -o NAME,TYPE | grep -w "$i" | grep "crypt" > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "mapper/$(lsblk -ln -o NAME,TYPE | grep "$i" | awk '{print $1}')"
|
echo "mapper/$(lsblk -ln -o NAME,TYPE | grep -w "$i" | awk '{print $1}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if lsblk -ln -o NAME,TYPE | grep "$i" | grep "lvm" > /dev/null 2>&1
|
if lsblk -ln -o NAME,TYPE | grep -w "$i" | grep "lvm" > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "mapper/$(lsblk -ln -o NAME,TYPE | grep "$i" | awk '{print $1}')"
|
echo "mapper/$(lsblk -ln -o NAME,TYPE | grep -w "$i" | awk '{print $1}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if lsblk -ln -o NAME,TYPE | grep "$i" | grep "part" > /dev/null 2>&1
|
if lsblk -ln -o NAME,TYPE | grep -w "$i" | grep "part" > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
lsblk -ln -o NAME,TYPE | grep "$i" | awk '{print $1}'
|
lsblk -ln -o NAME,TYPE | grep -w "$i" | awk '{print $1}'
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" = "get_part_fs" ]]
|
if [[ "$1" = "get_part_fs" ]]
|
||||||
then
|
then
|
||||||
lsblk -ln -o NAME,FSTYPE | grep "$2" | awk '{print $2}'
|
lsblk -ln -o NAME,FSTYPE | grep -w "$2" | awk '{print $2}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" = "get_part_size" ]]
|
if [[ "$1" = "get_part_size" ]]
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
pika-installer-gtk4 (2.0.1-101pika1) pika; urgency=low
|
pika-installer-gtk4 (2.0.1-101pika2) pika; urgency=low
|
||||||
|
|
||||||
* Refine UI
|
* Refine UI
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user