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, 5 insertions, 1 deletions
diff --git a/rellns-sh b/rellns-sh
index e66010d513..890f4eea3a 100755
--- a/rellns-sh
+++ b/rellns-sh
@@ -27,7 +27,11 @@ if test -d $1; then
   to=`cd $1 && /bin/pwd`
 else
   temp=`echo $1 | sed 's%/*[^/]*$%%'`
-  to=`cd $temp && /bin/pwd`
+  if test -z "$temp"; then
+    to=`/bin/pwd`
+  else
+    to=`cd $temp && /bin/pwd`
+  fi
   to="$to/`echo $1 | sed 's%.*/\([^/][^/]*\)$%\1%'`"
 fi
 to=`echo $to | sed 's%^/%%'`