[Lunar-commits] r15076 - lunar/branches/stable/sbin

Auke Kok sofar at lunar-linux.org
Thu May 26 13:49:56 UTC 2005


Author: sofar
Date: 2005-05-26 13:49:55 +0000 (Thu, 26 May 2005)
New Revision: 15076

Modified:
   lunar/branches/stable/sbin/lunar
Log:
Force creation of queue directory.


Modified: lunar/branches/stable/sbin/lunar
===================================================================
--- lunar/branches/stable/sbin/lunar	2005-05-26 13:49:05 UTC (rev 15075)
+++ lunar/branches/stable/sbin/lunar	2005-05-26 13:49:55 UTC (rev 15076)
@@ -404,6 +404,7 @@
 
 
 queue_menu()  {
+  [ ! -d /var/log/lunar/queue ] || mkdir -p /var/log/lunar/queue
   while
     I_HELP="View the list of modules selected for installation"
     i_HELP="Edit the list of modules selected for installation"
@@ -707,13 +708,11 @@
 
 
 foreground_execute() {
-  [  -f         $REMOVE_QUEUE  ]  &&
-  lrm  `cat  $REMOVE_QUEUE`
-  rm  -f        $REMOVE_QUEUE
+  [ -f $REMOVE_QUEUE ] && lrm `cat $REMOVE_QUEUE`
+  rm -f $REMOVE_QUEUE
 
-  [  -f         $INSTALL_QUEUE  ]  &&
-  $LIN   `cat  $INSTALL_QUEUE`
-  rm  -f        $INSTALL_QUEUE
+  [ -f $INSTALL_QUEUE ] && lin `cat $INSTALL_QUEUE`
+  rm  -f $INSTALL_QUEUE
 
   goodbye
 }



More information about the Lunar-commits mailing list