From e13eb6b84a0fd3c0e8999f849d51d792f37f4e1c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Jun 2011 14:58:26 +0200 Subject: ct: collect_into_directory: Don't run rm -rf, remove all symlinks instead --- bin/ct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.3