We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6028d commit 60c2c0bCopy full SHA for 60c2c0b
tools/cloudSync/cloud_sync_watcher.sh
@@ -29,11 +29,7 @@ declare -A current_hashes
29
# Function to calculate the hash of a directory
30
calculate_hash() {
31
dir="$1"
32
- if [ $system != "darwin" ];then
33
- hash=$(find "$dir" -type f -exec sha256sum {} + | sha256sum | awk '{print $1}')
34
- else
35
- hash=$(find "$dir" -type f -exec shasum -a 256 {} + | shasum -a 256 | awk '{print $1}')
36
- fi
+ hash=$(find "$dir" -type f -exec sha256sum {} + | sha256sum | awk '{print $1}')
37
echo "$hash"
38
}
39
0 commit comments