SOURCES: browser-plugins-update.sh - avoid doing something very ev...
glen
glen at pld-linux.org
Sat Sep 16 14:38:32 CEST 2006
Author: glen Date: Sat Sep 16 12:38:32 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- avoid doing something very evil if no browsers are installed
---- Files affected:
SOURCES:
browser-plugins-update.sh (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/browser-plugins-update.sh
diff -u SOURCES/browser-plugins-update.sh:1.1 SOURCES/browser-plugins-update.sh:1.2
--- SOURCES/browser-plugins-update.sh:1.1 Thu Sep 14 18:19:27 2006
+++ SOURCES/browser-plugins-update.sh Sat Sep 16 14:38:27 2006
@@ -49,8 +49,10 @@
# 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"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/browser-plugins-update.sh?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list