From: Rudolf Polzer Date: Sat, 3 Dec 2011 13:09:55 +0000 (+0100) Subject: count bytes BEFORE deleting ;) X-Git-Tag: xonotic-v0.6.0~49 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=438acddfe5999f0ecaf298df8f4cdd33e94cee1f count bytes BEFORE deleting ;) --- 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