Skip to content

Commit 60c2c0b

Browse files
committed
no darwin if
1 parent 5d6028d commit 60c2c0b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/cloudSync/cloud_sync_watcher.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ declare -A current_hashes
2929
# Function to calculate the hash of a directory
3030
calculate_hash() {
3131
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
32+
hash=$(find "$dir" -type f -exec sha256sum {} + | sha256sum | awk '{print $1}')
3733
echo "$hash"
3834
}
3935

0 commit comments

Comments
 (0)