summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Charette <francois@samarqand.localdomain>2009-05-12 11:42:27 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-12 22:04:14 +0200
commitb65fd05078fab48c4352609b2d7befa118a75b0f (patch)
tree75ce6f36522e77ad0708a5b36a73df60b003ead7
parent61053b6c98723488454eaeaf105a77dc0c3f8bbc (diff)
downloaddbscripts-b65fd05078fab48c4352609b2d7befa118a75b0f.tar.gz
dbscripts-b65fd05078fab48c4352609b2d7befa118a75b0f.tar.xz
fixed filename in creation of symlinks
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xdb-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/db-update b/db-update
index ace0d0e..5b011c2 100755
--- a/db-update
+++ b/db-update
@@ -217,8 +217,9 @@ for A in ${ARCHES[@]}; do
if ! /bin/cp "$f" "$ftppath_any"; then
die "error: failure while copying files to $ftppath_any"
fi
- if ! ln -s "$ftppath_any/$f" "$ftppath/$f"; then
- die "error: failed to make link for $f."
+ bf=$(basename $f)
+ if ! ln -s "$ftppath_any/$bf" "$ftppath/$bf"; then
+ die "error: failed to make link for $bf."
fi
done
fi