Browse Source

Fix version directive lookup

I don't know how I came up with that pipe but it's certainly wrong.
Alois Mahdal 7 years ago
parent
commit
e75593d0cc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/mkit.sh

+ 1
- 1
src/include/mkit.sh View File

113
     ver_line=$(
113
     ver_line=$(
114
         {
114
         {
115
             head -3 "$MKIT_INI"
115
             head -3 "$MKIT_INI"
116
-            tac "$MKIT_INI" | tail -3
116
+            tail -3 "$MKIT_INI"
117
         } | grep -m 1 -E '^# *mkit +version *= *v?[0-9]+\.[0-9]+\.[0-9]+'
117
         } | grep -m 1 -E '^# *mkit +version *= *v?[0-9]+\.[0-9]+\.[0-9]+'
118
     )
118
     )
119
     test -n "$ver_line" \
119
     test -n "$ver_line" \