reg/vendor/github.com/docker/docker-ce/components/packaging/static/hash_files
Jess Frazelle 8e5eba8735
switch to dep
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:50:55 -05:00

11 lines
261 B
Bash

#!/usr/bin/env bash
# Simple script to hash all the files in a given directory
DIR_TO_LOOK_IN=${1:-build/linux}
for f in $(find "$DIR_TO_LOOK_IN" -type f); do
for hash_algo in md5 sha256; do
"${hash_algo}sum" "$f" > "$f.$hash_algo"
done
done