From e416f2563e963b8c57c90eb1a3ae8f0054c70682 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 28 Feb 2007 08:34:46 +0000 Subject: [PATCH] - bugfix for dead symlinks Changed files: browser-plugins-update.sh -> 1.6 --- browser-plugins-update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser-plugins-update.sh b/browser-plugins-update.sh index 12801c2..6747036 100644 --- a/browser-plugins-update.sh +++ b/browser-plugins-update.sh @@ -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 -- 2.43.0