Skip to content

Commit e0b4561

Browse files
author
Bob Strahan
committed
Fix find command syntax in publish.sh checksum calculation
1 parent a3515fd commit e0b4561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function calculate_hash() {
161161
# Calculate directory checksum
162162
function get_dir_checksum() {
163163
local dir=$1
164-
local dir_checksum=$(find "$dir" -type d \( -name "python" -o -name "node_modules" -o -name "build" -o -name ".aws-sam" -o -name "dist" -o -name "__pycache__" -o ".pytest_cache" -o -name "*.egg-info" \) -prune -o -type f \( ! -name ".checksum" -a ! -name "*.pyc" \) -exec $STAT_CMD {} \; | sha256sum | awk '{ print $1 }')
164+
local dir_checksum=$(find "$dir" -type d \( -name "python" -o -name "node_modules" -o -name "build" -o -name ".aws-sam" -o -name "dist" -o -name "__pycache__" -o -name ".pytest_cache" -o -name "*.egg-info" \) -prune -o -type f \( ! -name ".checksum" -a ! -name "*.pyc" \) -exec $STAT_CMD {} \; | sha256sum | awk '{ print $1 }')
165165
local combined_string="$BUCKET $PREFIX_AND_VERSION $REGION $dir_checksum"
166166
echo -n "$combined_string" | sha256sum | awk '{ print $1 }'
167167
}

0 commit comments

Comments
 (0)