diff options
author | Francois Charette <francois@samarqand.localdomain> | 2009-05-12 11:42:27 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-05-12 13:04:14 -0700 |
commit | b65fd05078fab48c4352609b2d7befa118a75b0f (patch) | |
tree | 75ce6f36522e77ad0708a5b36a73df60b003ead7 | |
parent | 61053b6c98723488454eaeaf105a77dc0c3f8bbc (diff) |
fixed filename in creation of symlinks
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | db-update | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |