mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
12 lines
261 B
Text
12 lines
261 B
Text
![]() |
#!/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
|