Skip to content

Commit

Permalink
Fix sum
Browse files Browse the repository at this point in the history
  • Loading branch information
hmngwy committed Jul 9, 2018
1 parent 41b3ec8 commit f60c3f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/jenny
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ fi
[ "$(which gsed)" ] && SED=$(which gsed) || SED=$(which sed)
[ "$(which gawk)" ] && AWK=$(which gawk) || AWK=$(which awk)
[ "$(which gdate)" ] && DATE=$(which gdate) || DATE=$(which date)
[ "$(which md5sum)" ] && SUM=$(which md5sum) || SUM=$(which md5)
[ "$(which md5)" ] && SUM=$(which md5) || SUM=$(which md5sum)
[ "$(which ggrep)" ] && GREP=$(which ggrep) || GREP=$(which grep)

# Declare GlobalVariables
declare -a IndexList
Expand Down Expand Up @@ -105,8 +106,8 @@ begin () {
continue
fi

local content_sum=$(cat "$f" | $SUM)
local filename_sum=$(echo "$f" | $SUM)
local content_sum=$(cat "$f" | $SUM | cut -d ' ' -f 1)
local filename_sum=$(echo "$f" | $SUM | cut -d ' ' -f 1)

echo "$T$full_file_name"
forRendering=false
Expand Down

0 comments on commit f60c3f4

Please sign in to comment.