Skip to content

Commit 1e04e95

Browse files
committed
Fix ShellCheck issues in CI and scripts
1 parent 1b7891d commit 1e04e95

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: bash -n uki-setup.sh tests/test_uki_setup.sh
3030

3131
- name: ShellCheck
32-
run: shellcheck uki-setup.sh tests/test_uki_setup.sh
32+
run: shellcheck -P . uki-setup.sh tests/test_uki_setup.sh
3333

3434
- name: Project checks
3535
run: bash tests/test_uki_setup.sh

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Run the same checks locally with:
137137

138138
```bash
139139
bash -n uki-setup.sh tests/test_uki_setup.sh
140-
shellcheck uki-setup.sh tests/test_uki_setup.sh
140+
shellcheck -P . uki-setup.sh tests/test_uki_setup.sh
141141
bash tests/test_uki_setup.sh
142142
```
143143

‎tests/test_uki_setup.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cleanup() {
1111
trap cleanup EXIT
1212

1313
export UKI_SETUP_SKIP_MAIN=1
14-
# shellcheck source=../uki-setup.sh
14+
# shellcheck source=uki-setup.sh
1515
source "$REPO_ROOT/uki-setup.sh"
1616

1717
BUILD_SCRIPT="$TMPDIR_WORK/usr-local-sbin-uki-build.sh"

‎uki-setup.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ phase_summary() {
471471
echo " ${INSTALL_PLUGIN} ← auto-trigger on kernel installs"
472472
echo ""
473473
echo " UKIs are stored in: ${EFI_DIR}/"
474-
ls -lh "${EFI_DIR}/"*.efi 2>/dev/null | sed 's/^/ /' || true
474+
find "${EFI_DIR}" -maxdepth 1 -type f -name "*.efi" -exec ls -lh {} + 2>/dev/null | sed 's/^/ /' || true
475475
echo ""
476476
echo " Current UEFI boot entries:"
477477
efibootmgr -v 2>/dev/null | grep -E 'BootOrder|Boot[0-9A-Fa-f]{4}' | sed 's/^/ /' || true

0 commit comments

Comments
 (0)