penguin/utils

my env utils

commit c2bfbfbc62ea3506c105d5d5ed09ff07c3d26e17

author斟酌 鵬兄 <tgckpg@gmail.com>
date2015-11-24T08:01:14Z
subjecttest x not work
commit c2bfbfbc62ea3506c105d5d5ed09ff07c3d26e17
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2015-11-24T08:01:14Z

    test x not work
---
 bash/bashrc/rbashrc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 3345681..4341391 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -111,7 +111,8 @@ function __cacheDownload {
 }
 
 function __uuid {
-    if [ -x uuidgen ]; then
+    which -s uuidgen
+    if [ $? -eq 0 ]; then
         uuidgen
     else
         cat /proc/sys/kernel/random/uuid