]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
count bytes BEFORE deleting ;)
authorRudolf Polzer <divverent@xonotic.org>
Sat, 3 Dec 2011 13:09:55 +0000 (14:09 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 3 Dec 2011 13:09:55 +0000 (14:09 +0100)
misc/tools/symlink-deduplicate.sh

index e30ff0bf285929c99dda1bfa13c1f45d54e96af7..72c9ce213304accedb20d5aa4bfdd1210f1876ab 100755 (executable)
@@ -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