@@ -48,7 +48,7 @@ require_registry() {
4848assert_profile_exists () {
4949 local profile_id=" $1 "
5050 require_registry
51- if ! python3 - " $REGISTRY_PATH " " $profile_id " << 'PY '
51+ if ! python3 - " $REGISTRY_PATH " " $profile_id " << 'PY '; then
5252import json
5353import sys
5454
@@ -57,7 +57,6 @@ registry = json.load(open(registry_path, "r", encoding="utf-8"))
5757ids = {p["id"] for p in registry.get("profiles", [])}
5858raise SystemExit(0 if profile_id in ids else 1)
5959PY
60- then
6160 echo " Unknown profile: $profile_id "
6261 echo " Use --list-profiles to view valid profile IDs."
6362 exit 1
@@ -277,7 +276,8 @@ disable_profile() {
277276 current_csv=" $( load_enabled_profiles) "
278277
279278 local updated_csv
280- updated_csv=" $( python3 - " $current_csv " " $profile_id " << 'PY '
279+ updated_csv=" $(
280+ python3 - " $current_csv " " $profile_id " << 'PY '
281281import sys
282282
283283current_csv, profile_id = sys.argv[1], sys.argv[2]
@@ -287,7 +287,7 @@ if not filtered:
287287 filtered = ["core"]
288288print(",".join(filtered))
289289PY
290- ) "
290+ ) "
291291
292292 install_with_csv " $updated_csv "
293293}
@@ -324,7 +324,7 @@ uninstall_all() {
324324
325325main () {
326326 case " ${1:- } " in
327- " " )
327+ " " )
328328 install_with_csv " $( load_enabled_profiles) "
329329 ;;
330330 --list-profiles)
@@ -360,7 +360,7 @@ main() {
360360 --uninstall)
361361 uninstall_all
362362 ;;
363- -h| --help)
363+ -h | --help)
364364 usage
365365 ;;
366366 * )
0 commit comments