Skip to content

Commit 02e0cb0

Browse files
committed
Update source paths in scripts
1 parent 4742bd4 commit 02e0cb0

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Run shellcheck
9090
uses: ludeeus/action-shellcheck@master
9191
env:
92-
SHELLCHECK_OPTS: -s bash -x -e SC2001 --norc
92+
SHELLCHECK_OPTS: -x -s bash -e SC2001 --norc
9393

9494
compilation:
9595
name: Check compilation

bin/add_practice_exercise

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22

33

4+
# see comment in generator-utils/utils.sh
5+
# shellcheck source=bin/generator-utils/utils.sh
6+
# shellcheck source=bin/generator-utils/templates.sh
7+
# shellcheck source=bin/generator-utils/prompts.sh
48
# shellcheck source=./generator-utils/utils.sh
59
# shellcheck source=./generator-utils/prompts.sh
610
# shellcheck source=./generator-utils/templates.sh

bin/generate_tests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
set -euo pipefail
66

77

8+
# see comment in generator-utils/utils.sh
9+
# shellcheck source=bin/generator-utils/utils.sh
810
# shellcheck source=./generator-utils/utils.sh
911
source ./bin/generator-utils/utils.sh
1012

bin/generator-utils/prompts.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22

33

4+
# see comment in utils.sh
5+
# shellcheck source=bin/generator-utils/colors.sh
46
# shellcheck source=./colors.sh
57
source ./bin/generator-utils/colors.sh
68

bin/generator-utils/templates.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# see comment in utils.sh
4+
# shellcheck source=bin/generator-utils/utils.sh
35
# shellcheck source=./utils.sh
46
source ./bin/generator-utils/utils.sh
57

bin/generator-utils/utils.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22

3-
3+
# top one gets evaluated
4+
# relative one is needed for .shellcheckrc to test if files exist in local env
5+
# absolute one is needed for CI to test if files exist
6+
# before commit - swap these accordingly
7+
# shellcheck source=bin/generator-utils/colors.sh
48
# shellcheck source=./colors.sh
59
source ./bin/generator-utils/colors.sh
610

0 commit comments

Comments
 (0)