From 438acddfe5999f0ecaf298df8f4cdd33e94cee1f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 3 Dec 2011 14:09:55 +0100 Subject: [PATCH] count bytes BEFORE deleting ;) --- misc/tools/symlink-deduplicate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/symlink-deduplicate.sh b/misc/tools/symlink-deduplicate.sh index e30ff0bf..72c9ce21 100755 --- a/misc/tools/symlink-deduplicate.sh +++ b/misc/tools/symlink-deduplicate.sh @@ -108,8 +108,8 @@ while IFS= read -r L; do eval first=\$first_$s if [ -n "$first" ]; then first_r=`make_relative_path "$L" "$first"` - ln -vsnf "$first_r" "$L" killed=$((`stat -c %s "$L"` + $killed)) + ln -vsnf "$first_r" "$L" else eval first_$s=\$L fi -- 2.39.2