Skip to content

Commit

Permalink
Make db_sha_local compatible with FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
mhtrinhLIC committed Dec 20, 2017
1 parent 2d827e8 commit f8664f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dropbox_uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,8 @@ function db_sha_local
let SKIP=$SKIP+1
done

echo $SHA_CONCAT | sed 's/\([0-9A-F]\{2\}\)/\\\\\\x\1/gI' | xargs printf | shasum -a 256 | awk '{print $1}'
shaHex=$(echo $SHA_CONCAT | sed 's/\([0-9A-F]\{2\}\)/\\x\1/gI')
echo -ne $shaHex | shasum -a 256 | awk '{print $1}'
}

################
Expand Down

0 comments on commit f8664f7

Please sign in to comment.