penguin/utils

my env utils

commit 872980cb8a1ee26af9a2f34db8cf51d9a9c5eab5

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-02-21T12:00:52Z
subjectmore uuid fix
commit 872980cb8a1ee26af9a2f34db8cf51d9a9c5eab5
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-02-21T12:00:52Z

    more uuid fix
---
 bash/bashrc/rbashrc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 118b092..6821d13 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -124,8 +124,8 @@ function __uuid {
 
 function rbash_upgrade {
     echo "Updating the .bashrc"
-    __uuid TEMP_UUID
-    TMPFILE=/tmp/$TEMP_UUID
+    __uuid TMPID
+    TMPFILE=/tmp/$TMPID
     curl -s "http://git.astropenguin.net/?p=utils.git;a=blob_plain;f=bash/bashrc/rbashrc;hb=HEAD" > $TMPFILE
 
     if [ -z "$1" ]; then
@@ -157,7 +157,8 @@ function rbash_run {
     echo "Getting: $1"
     __cacheDownload "http://git.astropenguin.net/?p=utils.git;a=blob_plain;f=bash/$1;hb=HEAD"
     shift
-    TMPFILE=/tmp/$( __uuid )
+    __uuid TMPID
+    TMPFILE=/tmp/$TMPID
     __cryptd "$__CFILE" "$TMPFILE"
 
     bash "$TMPFILE" $@
@@ -179,7 +180,8 @@ function __ns {
     echo "  $1"
     __cacheDownload "http://git.astropenguin.net/?p=utils.git;a=blob_plain;f=bash/bashrc/$FPATH;hb=HEAD"
     shift
-    TMPFILE=/tmp/$( __uuid )
+    __uuid TMPID
+    TMPFILE=/tmp/$TMPID
     __cryptd "$__CFILE" "$TMPFILE"
     . $TMPFILE
     rm $TMPFILE