Skip to content

Commit 1edb1fd

Browse files
authored
Merge pull request #55 from per1234/fix-shellcheck
Declare and assign variable separately in setup script
2 parents afbfe52 + 2613632 commit 1edb1fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action-setup.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
readonly PYTHON_PACKAGE_VERSION='3.8'
66

77
# https://stackoverflow.com/a/29835459
8-
readonly SCRIPT_PATH="$(
8+
SCRIPT_PATH="$(
99
CDPATH='' \
1010
cd -- "$(
1111
dirname -- "$0"
1212
)" && (
1313
pwd -P
1414
)
1515
)"
16+
readonly SCRIPT_PATH
1617

1718
readonly PYTHON_COMMAND="python${PYTHON_PACKAGE_VERSION}"
1819
readonly PYTHON_VENV_PATH="${SCRIPT_PATH}/compilesketches/.venv"

0 commit comments

Comments
 (0)