fix: remove unreachable exit after error call in check_pg_schema.sh (#21530)

Fixes shellcheck warning reported in
https://github.com/coder/coder/pull/21496#discussion_r2696470065

## Problem

The `error()` function in `lib.sh` already calls `exit 1`, so the `exit
1` on line 17 of `check_pg_schema.sh` was unreachable:

```
In ./scripts/check_pg_schema.sh line 17:
	exit 1
        ^----^ SC2317 (info): Command appears to be unreachable.
```

## Solution

Remove the redundant `exit 1` since `error()` already handles exiting.

Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
blinkagent[bot]
2026-01-16 10:48:20 +02:00
committed by GitHub
parent 11b35a5f94
commit 3b07f7b9c4
-1
View File
@@ -14,7 +14,6 @@ cdroot
if [[ $# -lt 1 ]]; then if [[ $# -lt 1 ]]; then
error "Usage: check_pg_schema.sh <label> [files...]" error "Usage: check_pg_schema.sh <label> [files...]"
exit 1
fi fi
label=$1 label=$1