about summary refs log tree commit diff
path: root/rellns-sh
diff options
context:
space:
mode:
Diffstat (limited to 'rellns-sh')
-rwxr-xr-xrellns-sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/rellns-sh b/rellns-sh
index f761b6bb77..2df4721b00 100755
--- a/rellns-sh
+++ b/rellns-sh
@@ -29,14 +29,14 @@ case $1 in
 
   if test -d $2; then
     fromname=.
-    from=`echo $2 | sed 's%/$%%' | sed 's%^/%%'`
+    from=`echo $2 | sed 's%/$%%'`
   else
     fromname=`echo $2 | sed 's%.*/\([^/]*\)$%\1%'`
-    from=`echo $2 | sed "s%/*$fromname$%%" | sed 's%^/%%'`
+    from=`echo $2 | sed "s%/*$fromname$%%"`
   fi
 
   case $from in
-  /*) ;;
+  /*) from=`echo $from | sed 's%^/%%'` ;;
   ?*) from=`cd $from && pwd | sed 's%^/%%'` ;;
   *) from=`pwd | sed 's%^/%%'` ;;
   esac