Skip to content

Commit 99a749b

Browse files
committed
Fix arithmetic expression crash in project-install.sh
Script crashed with `set -e` due to post-increment returning exit code 1 when chain_depth was 0. Changed to pre-increment so expression always returns non-zero value.
1 parent 809fb4e commit 99a749b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/project-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ main() {
447447
done
448448
chain_display="$chain_display"$'\n'"$indent ↳ inherits from: $profile_name"
449449
fi
450-
((chain_depth++))
450+
((++chain_depth))
451451
done <<< "$reversed_chain"
452452
echo "$chain_display"
453453

0 commit comments

Comments
 (0)