[Lunar-commits] <lunar> rename tempfiles

Michael 'v4hn' Goerner v4hn at lunar-linux.org
Sat Nov 16 10:27:41 CET 2013


commit 3aa3f74d911301cc61cda9b686d5026d52ee9fd2
Author: Michael 'v4hn' Goerner <v4hn at lunar-linux.org>
Date: Sat, 02 Nov 2013 17:57:13 -0700
URL: https://github.com/lunar-linux/lunar/commit/3aa3f74d911301cc61cda9b686d5026d52ee9fd2

rename tempfiles

modules name should come before process id so tab-completion works better
---
  libs/temp.lunar | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/libs/temp.lunar
+++ b/libs/temp.lunar
@@ -21,7 +21,7 @@ temp_create() {
   local TMPFILE
   debug_msg "temp_create ($@)"
   TMPFILE="$@"
-  if TMPFILE=$(mktemp -p "$TMPDIR" -t lunar.`basename $0`.$$.$TMPFILE.XXXXXXXXXX ) ; then
+  if TMPFILE=$(mktemp -p "$TMPDIR" -t lunar.`basename $0`.$TMPFILE.$$.XXXXXXXXXX ) ; then
     echo $TMPFILE
   else
     message "${PROBLEM_COLOR}ERROR:${DEFAULT_COLOR}" \




More information about the Lunar-commits mailing list