mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 07:50:00 +01:00
9 lines
454 B
Bash
9 lines
454 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
data_directory="data/build"
|
||
|
|
||
|
# Use find to list all files in the directory (including hidden files), sort them, and then calculate the hash
|
||
|
#hash=$(find "$data_directory" -type f \( ! -iname ".*" \) | LC_ALL=C sort | xargs cat | shasum -a 256 | cut -d ' ' -f 1)
|
||
|
hash=$(find "$data_directory" -type f \( ! -iname ".*" \) | LC_ALL=C sort | xargs -I {} cat {} | shasum -a 256 | cut -d ' ' -f 1)
|
||
|
|
||
|
echo "Hash of files in $data_directory: $hash"
|