From: Elan Ruusamäe Date: Sat, 16 Sep 2006 12:38:27 +0000 (+0000) Subject: - avoid doing something very evil if no browsers are installed X-Git-Tag: auto/th/browser-plugins-2_0-1~9 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbrowser-plugins.git;a=commitdiff_plain;h=5990b83f2833583a21e3835cb331f9a1b16f4006 - avoid doing something very evil if no browsers are installed Changed files: browser-plugins-update.sh -> 1.2 --- diff --git a/browser-plugins-update.sh b/browser-plugins-update.sh index ccc3e7d..4b7fa1e 100644 --- a/browser-plugins-update.sh +++ b/browser-plugins-update.sh @@ -49,8 +49,10 @@ blacklisted() { # returns list of installed browsers get_browsers() { for dir in "$browsersdir"/*.*; do - dir="${dir#$browsersdir/}" - browsers="$browsers $dir" + if [ -L "$dir" ]; then + dir="${dir#$browsersdir/}" + browsers="$browsers $dir" + fi done echo >&3 "browsers: $browsers"