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
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fi

# Set default parameters
if [[ -z "${SPM:-}" ]]; then
SPM=false
SPM=true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Setting SPM to true by default could potentially break existing setups that rely on the previous default (false). Consider adding a check to see if SPM is explicitly set to false before defaulting to true, or providing a clear migration path for users who depend on the old behavior.

if [[ -z "${SPM:-}" ]]; then
    SPM=true
    echo "Defaulting to SPM=$SPM"
fi

It might be better to check if it's explicitly set to false first.

Suggested change
SPM=true
if [[ -z "${SPM:-}" ]]; then
SPM=true
echo "Defaulting to SPM=$SPM"
fi

echo "Defaulting to SPM=$SPM"
fi
if [[ -z "${OS:-}" ]]; then
Expand Down
Loading