]> git.pld-linux.org Git - packages/browser-plugins.git/commitdiff
- avoid doing something very evil if no browsers are installed
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 16 Sep 2006 12:38:27 +0000 (12:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    browser-plugins-update.sh -> 1.2

browser-plugins-update.sh

index ccc3e7d16c60e103c7ba716a6199670b30403e43..4b7fa1e4bac4be6b6761ab89fd18199503c02811 100644 (file)
@@ -49,8 +49,10 @@ blacklisted() {
 # returns list of installed browsers
 get_browsers() {
        for dir in "$browsersdir"/*.*; do
 # 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"
        done
 
        echo >&3 "browsers: $browsers"
This page took 0.068062 seconds and 4 git commands to generate.