瀏覽代碼

Fix version directive lookup

I don't know how I came up with that pipe but it's certainly wrong.
Alois Mahdal 7 年之前
父節點
當前提交
e75593d0cc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/include/mkit.sh

+ 1
- 1
src/include/mkit.sh 查看文件

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