From 872980cb8a1ee26af9a2f34db8cf51d9a9c5eab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sun, 21 Feb 2016 20:00:52 +0800 Subject: [PATCH] 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