aboutsummaryrefslogtreecommitdiff
path: root/rellns-sh
diff options
context:
space:
mode:
Diffstat (limited to 'rellns-sh')
-rwxr-xr-xrellns-sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/rellns-sh b/rellns-sh
index 5ce265bccf..61f18c4146 100755
--- a/rellns-sh
+++ b/rellns-sh
@@ -22,6 +22,12 @@ if test $# -ne 2; then
exit 1
fi
+# We only handle the case where SOURCE is the name of an existing file
+if test ! -f $1; then
+ echo "rellns: $1 must name an existing file" >&2
+ exit 1
+fi
+
case $1 in
/*)
# Make both paths absolute.