test x not work

This commit is contained in:
斟酌 鵬兄 2015-11-24 16:01:14 +08:00
parent 53155d5587
commit c2bfbfbc62

View File

@ -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