SOURCES: browser-plugins-update.sh - bugfix for dead symlinks
glen
glen at pld-linux.org
Wed Feb 28 09:34:52 CET 2007
Author: glen Date: Wed Feb 28 08:34:52 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- bugfix for dead symlinks
---- Files affected:
SOURCES:
browser-plugins-update.sh (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SOURCES/browser-plugins-update.sh
diff -u SOURCES/browser-plugins-update.sh:1.5 SOURCES/browser-plugins-update.sh:1.6
--- SOURCES/browser-plugins-update.sh:1.5 Wed Jan 10 01:40:19 2007
+++ SOURCES/browser-plugins-update.sh Wed Feb 28 09:34:46 2007
@@ -66,6 +66,10 @@
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 @@
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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/browser-plugins-update.sh?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list