[Lunar-commits] <moonbase> NVIDIA-beta: broken login in POST_REMOVE
    Auke Kok 
    sofar at foo-projects.org
       
    Mon Sep 27 08:56:06 CEST 2010
    
    
  
commit 9dedda8d581441c66aab7b787a5eeedb76be5033
Author: Paul Bredbury <brebs at sent.com>
Date:   Mon Sep 27 08:56:06 2010 +0200
    NVIDIA-beta: broken login in POST_REMOVE
    
    This is untested, but the existing logic is obviously wrong - it loops through files in a dir which is known to *not* exist.
    
    [ slightly modified to improve test and style --sofar]
---
 x11/NVIDIA-beta/POST_REMOVE |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/x11/NVIDIA-beta/POST_REMOVE b/x11/NVIDIA-beta/POST_REMOVE
index fef026d..c2138ce 100644
--- a/x11/NVIDIA-beta/POST_REMOVE
+++ b/x11/NVIDIA-beta/POST_REMOVE
@@ -1,5 +1,5 @@
 # Restore Mesa OpenGL headers:
-if [[ ! -e /usr/include/GL/mesa ]] ; then
+if [ -d /usr/include/GL/mesa ] ; then
 for file in `ls /usr/include/GL/mesa`;
 do ln -sf /usr/include/GL/mesa/$file /usr/include/GL/$file;
 done
    
    
More information about the Lunar-commits
mailing list