[Lunar-commits] <lunar> Force creation of queue directory.
Auke Kok
sofar at lunar-linux.org
Mon Jul 2 04:43:03 CEST 2012
commit d3c83d90cb52617ac99da850fa644528a38c1be5
Author: Auke Kok <sofar at lunar-linux.org>
Date: Thu May 26 13:49:55 2005 +0000
Force creation of queue directory.
---
sbin/lunar | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/sbin/lunar b/sbin/lunar
index c379491..9c119b6 100755
--- a/sbin/lunar
+++ b/sbin/lunar
@@ -404,6 +404,7 @@ set_delay() {
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 @@ background_execute() {
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