Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/templates/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# under the License.
#

set -e
set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pushd "$SCRIPT_DIR/../python" > /dev/null
Expand Down Expand Up @@ -139,6 +139,7 @@ EXCLUDE_PATHS=(
"./poetry.lock"
"./docker-compose.yml"
"./.pre-commit-config.yaml"
"./README.md"
)

EXCLUDE_EXTENSIONS=(
Expand All @@ -161,7 +162,7 @@ find . -type f | while read -r file; do
extension_excluded=true
fi
done

# Skip this file if its extension is excluded
if [ "$extension_excluded" = true ]; then
echo "${file}: skipped"
Expand All @@ -182,7 +183,7 @@ find . -type f | while read -r file; do
if [ "$exclude" = false ]; then
# Construct the header file path
header_file="${SCRIPT_DIR}/header-${ext}.txt"

# Only process if the license file exists
if [ -f "$header_file" ]; then
echo "${file}: updated"
Expand Down Expand Up @@ -212,4 +213,3 @@ echo "Deletion complete"
echo "Regeneration complete"

popd > /dev/null

Loading