Browse Source

Use "$PWD" as source by default

Alois Mahdal 9 years ago
parent
commit
4110189311
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libexec/saturnin-ln

+ 2
- 2
src/libexec/saturnin-ln View File

22
 "
22
 "
23
 
23
 
24
 usage() {
24
 usage() {
25
-    usage_is "[-f|--force] [-t|--target TARGET] SOURCE [NAME]"
25
+    usage_is "[-f|--force] [-t|--target TARGET] [SOURCE] [NAME]"
26
 }
26
 }
27
 
27
 
28
 link() {
28
 link() {
47
     -t|--target)        target=$2           shift 2 ;;
47
     -t|--target)        target=$2           shift 2 ;;
48
     --help)             usage                       ;;
48
     --help)             usage                       ;;
49
     -*)                 usage                       ;;
49
     -*)                 usage                       ;;
50
-    "")                 usage                       ;;
51
     *)                  src=$1; name=$2;    break   ;;
50
     *)                  src=$1; name=$2;    break   ;;
52
 esac done
51
 esac done
53
 
52
 
54
 test -z "$target"               && target=$(load target)
53
 test -z "$target"               && target=$(load target)
55
 test -z "$target"               && target=$DEFAULT_TARGET
54
 test -z "$target"               && target=$DEFAULT_TARGET
56
 test -z "$name"                 && name="$(basename "$PWD")"
55
 test -z "$name"                 && name="$(basename "$PWD")"
56
+test -z "$src"                  && src="."
57
 
57
 
58
 debug -v name target
58
 debug -v name target
59
 
59