argh, syntax fail
authorRudolf Polzer <divVerent@alientrap.org>
Fri, 6 Aug 2010 06:50:00 +0000 (08:50 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Fri, 6 Aug 2010 06:50:00 +0000 (08:50 +0200)
misc/tools/cached-converter.sh

index a9098cbfad93f210c5d3782bb6d5f7010abcd5e9..5b1d0bf07bfd0dd10537eeeed1e2f02bb6e1ee96 100755 (executable)
@@ -245,7 +245,7 @@ for F in "$@"; do
        if [ -f "dds/${f}.dds" ]; then
                if [ -z "${f##./textures/*}" ]; then
                        if [ -n "${f##./textures/*/*}" ]; then
-                               ln -snf "textures/${f%./textures/}.dds" "dds/${f%./textures/}.dds"
+                               ln -snf "textures/${f#./textures/}.dds" "dds/${f#./textures/}.dds"
                        fi
                fi
        fi