Skip to content

Commit

Permalink
change Uniqueid generation from /dev/urandom top date in utils.func
Browse files Browse the repository at this point in the history
  • Loading branch information
Staubgeborener authored Sep 4, 2024
1 parent 6f5162b commit 6e83af7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions utils/utils.func
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NC=$'\e[0m' # No Color ${NC}

# Create unique id for git email
getUniqueid() {
echo $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | dd bs=7 count=1 2>/dev/null)
echo $(date +%s%N | md5sum | head -c 7)
}

wantsafter() {
Expand Down Expand Up @@ -256,11 +256,13 @@ show_help(){
echo " -h, --help display this help and exit"
echo " -c, --commit_message [TEXT] use your own commit message for the git push"
echo " -f, --fix delete the config_backup folder. This can help to solve the vast majority of error messages"
echo " -d, --debug debugging output"
echo
echo "Examples:"
echo " $(basename $0) --help"
echo " $(basename $0) --commit_message \"My own commit message\""
echo " $(basename $0) --fix"
echo " $(basename $0) --debug"
}

fix(){
Expand All @@ -278,9 +280,9 @@ fix(){
}

begin_debug_line(){
echo "--------DEBUG:--------"
echo -e "\n------------DEBUG:------------"
}

end_debug_line(){
echo "----------------------"
}
echo -e "------------------------------\n"
}

0 comments on commit 6e83af7

Please sign in to comment.