fix greps
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m5s

This commit is contained in:
Ward from fusion-voyager-3 2024-11-14 23:48:11 +03:00
parent 65ecef155d
commit ea269ffd99
3 changed files with 9 additions and 9 deletions

View File

@ -1 +1 @@
8 9

View File

@ -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
View File

@ -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