Skip to content

Commit 7fd7b3b

Browse files
committed
Fix project-install.sh and default profile structure
Two issues fixed: 1. Default profile had wrong structure - categories were directly in profile root instead of inside `standards/` subfolder. Moved `global/` into `standards/global/`. 2. Script crashed with `set -e` due to arithmetic expression returning exit code 1 when chain_depth was 0. Changed post-increment to pre-increment so the expression always returns non-zero.
1 parent 809fb4e commit 7fd7b3b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

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)