summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-26 14:58:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-26 14:58:26 +0200
commite13eb6b84a0fd3c0e8999f849d51d792f37f4e1c (patch)
treec5ac1097c1279e2ecc3a9249dda2a9be13a224b3
parent2fa695915937f56a4d150b29a41859ae7e22abf1 (diff)
ct: collect_into_directory: Don't run rm -rf, remove all symlinks instead
-rwxr-xr-xbin/ct2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ct b/bin/ct
index 8857f37..d888aa1 100755
--- a/bin/ct
+++ b/bin/ct
@@ -437,8 +437,8 @@ function collect_into_directory {
shift
info "collecting into ${directory}: ${*}\n"
- rm -rf ${directory}
mkdir -p ${directory}
+ rm -f ${directory}/*(@)
if [[ -e ${1} ]] {
ln -s ${*} ${directory}