From c2bfbfbc62ea3506c105d5d5ed09ff07c3d26e17 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: Tue, 24 Nov 2015 16:01:14 +0800 Subject: [PATCH] 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