summaryrefslogtreecommitdiffstats
path: root/dracut-functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dracut-functions.sh')
-rwxr-xr-xdracut-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh
index f9e5d3b..1f7a905 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -243,7 +243,7 @@ get_maj_min() {
local _out
if [[ $get_maj_min_cache_file ]]; then
- _out="$(grep -m1 -oE "^$1 \S+$" "$get_maj_min_cache_file" | awk '{print $NF}')"
+ _out="$(grep -m1 -oE "^$1 \S+$" "$get_maj_min_cache_file" | grep -oE "\S+$")"
fi
if ! [[ "$_out" ]]; then