- bugfix for dead symlinks
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 28 Feb 2007 08:34:46 +0000 (08:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    browser-plugins-update.sh -> 1.6

browser-plugins-update.sh

index 12801c2..6747036 100644 (file)
@@ -66,6 +66,10 @@ blacklisted() {
 get_browsers() {
        for dir in "$browsersdir"/*.*; do
                if [ -L "$dir" ]; then
+                       if [ ! -d "$dir" ]; then
+                               echo >&2 "$0: WARNING: plugindir $dir is not pointing to directory, browser ignored"
+                               continue
+                       fi
                        dir="${dir#$browsersdir/}"
                        browsers="$browsers $dir"
                fi
@@ -80,7 +84,7 @@ browserplugindir() {
        local browser="$1"
        local dir
        dir=$(readlink "$browsersdir/$browser")
-       if [ -z "$dir" ]; then
+       if [ ! -d "$dir" -o -z "$dir" ]; then
                echo >&2 "$0: ERROR: browser plugin dir pointing to nowhere for $browser!"
                exit 1
        fi
This page took 0.167594 seconds and 4 git commands to generate.