2 Commits

2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
## 0.4.3 - 17/06/2017
Fix path of sed in lock function
## 0.4.2 - 16/06/2017
Fix another problem on generate installation identifier to sendo for statistic
## 0.4.1 - 14/06/2017 ## 0.4.1 - 14/06/2017
Fix problem on send identifier installation for statistic Fix problem on send identifier installation for statistic

View File

@@ -1418,7 +1418,7 @@ list_descendants ()
# #
function lock { function lock {
sleep 0.$((100 * $RANDOM / 32767)) | sed 's/..$/.&/' sleep 0.$((100 * $RANDOM / 32767)) | $SED 's/..$/.&/'
local max_time=10 local max_time=10
local current_time=$(($1 + 1)) local current_time=$(($1 + 1))
@@ -1474,7 +1474,7 @@ function send_identifier {
return return
fi fi
fi fi
local ID=`ifconfig | $GREP --color=never -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | head -1 | md5sum | $CUT -d" " -f 1` local ID=`/sbin/ifconfig | $GREP --color=never -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | /usr/bin/head -1 | /usr/bin/md5sum | $CUT -d" " -f 1`
if [ -z "$ID" ]; then if [ -z "$ID" ]; then
return; return;
fi fi
@@ -1496,7 +1496,7 @@ function debug2 {
VERSION=0 VERSION=0
SUB_VERSION=4 SUB_VERSION=4
RELEASE_VERSION=1 RELEASE_VERSION=3
DIR_SCRIPT=`dirname $0` DIR_SCRIPT=`dirname $0`
NAME_SCRIPT=${0##*/} NAME_SCRIPT=${0##*/}