浏览代码

Remove the prefix option; pick name from PWD

Too complicated and little useful
Alois Mahdal 10 年前
父节点
当前提交
c9214446e1
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1
    8
      src/libexec/saturnin-ln

+ 1
- 8
src/libexec/saturnin-ln 查看文件

52
 esac done
52
 esac done
53
 
53
 
54
 test -z "$target"               && target=$(load target)
54
 test -z "$target"               && target=$(load target)
55
-test -z "$prefix"               && prefix=$(load prefix)
56
 test -z "$target"               && target=$DEFAULT_TARGET
55
 test -z "$target"               && target=$DEFAULT_TARGET
57
-
58
-case $prefix.$name in
59
-    .)          die "provide at least name or set prefix in ln.conf";;
60
-    $prefix.)   name=$prefix;;
61
-    .$name)     :;;
62
-    *)          name=$prefix.$name;;
63
-esac
56
+test -z "$name"                 && name="$(basename "$PWD")"
64
 
57
 
65
 debug -v name target
58
 debug -v name target
66
 
59