- more errorchecking
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 16 Sep 2006 12:46:03 +0000 (12:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    browser-plugins-update.sh -> 1.3

browser-plugins-update.sh

index 4b7fa1e4bac4be6b6761ab89fd18199503c02811..3677bc6994d9e9594375a26074b02a65f3bb13f0 100644 (file)
@@ -62,7 +62,13 @@ get_browsers() {
 # returns plugin directory for browser
 browserplugindir() {
        local browser="$1"
-       readlink "$browsersdir/$browser"
+       local dir
+       dir=$(readlink "$browsersdir/$browser")
+       if [ -z "$dir" ]; then
+               echo >&2 "$0: browser plugin dir empty for $browser; exiting!"
+               exit 1
+       fi
+       echo "$dir"
 }
 
 remove_plugins() {
This page took 0.081766 seconds and 4 git commands to generate.