ソースを参照

Canonicalize correctly even if PREFIX does not exist

The existence test is done on next line, and with -f in place,
canonicalization or non-existent PREFIX leads to empty PREFIX which
makes the next message confusing
Alois Mahdal 10 年 前
コミット
865d6f5b8a
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      utils/mkit/include/mkit.sh

+ 1
- 1
utils/mkit/include/mkit.sh ファイルの表示

@@ -23,7 +23,7 @@ mkit_init() {
23 23
     sed -e 's/ = /=/' < config.mk > $tmp
24 24
     . $tmp
25 25
     rm -f $tmp
26
-    PREFIX="$(readlink -f "$PREFIX")"
26
+    PREFIX="$(readlink -m "$PREFIX")"
27 27
     test -d "$PREFIX" || die "PREFIX points to bad directory: $PREFIX"
28 28
 }
29 29