[arch-commits] Commit in ghc/trunk (ghc.install)

Vesa Kaihlavirta vesa at archlinux.org
Wed Nov 23 21:20:46 UTC 2011


    Date: Wednesday, November 23, 2011 @ 16:20:46
  Author: vesa
Revision: 143239

better check that the directory exists

Modified:
  ghc/trunk/ghc.install

-------------+
 ghc.install |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: ghc.install
===================================================================
--- ghc.install	2011-11-23 21:18:58 UTC (rev 143238)
+++ ghc.install	2011-11-23 21:20:46 UTC (rev 143239)
@@ -4,7 +4,7 @@
     cat << EOF
     ==> Unregistering cabalized packages...
 EOF
-    for unreg in /usr/share/haskell/*/unregister.sh; do "$a"; done
+    [ -d /usr/share/haskell ] && for unreg in /usr/share/haskell/*/unregister.sh; do "$a"; done
     cat << EOF
     ==> Done.
 EOF




More information about the arch-commits mailing list