Browse Source

Remove the prefix option; pick name from PWD

Too complicated and little useful
Alois Mahdal 9 years ago
parent
commit
c9214446e1
1 changed files with 1 additions and 8 deletions
  1. 1
    8
      src/libexec/saturnin-ln

+ 1
- 8
src/libexec/saturnin-ln View File

@@ -52,15 +52,8 @@ while true; do case $1 in
52 52
 esac done
53 53
 
54 54
 test -z "$target"               && target=$(load target)
55
-test -z "$prefix"               && prefix=$(load prefix)
56 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 58
 debug -v name target
66 59