Skip to content

Commit

Permalink
Merge pull request #55 from per1234/fix-shellcheck
Browse files Browse the repository at this point in the history
Declare and assign variable separately in setup script
  • Loading branch information
per1234 authored Mar 25, 2022
2 parents afbfe52 + 2613632 commit 1edb1fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
readonly PYTHON_PACKAGE_VERSION='3.8'

# https://stackoverflow.com/a/29835459
readonly SCRIPT_PATH="$(
SCRIPT_PATH="$(
CDPATH='' \
cd -- "$(
dirname -- "$0"
)" && (
pwd -P
)
)"
readonly SCRIPT_PATH

readonly PYTHON_COMMAND="python${PYTHON_PACKAGE_VERSION}"
readonly PYTHON_VENV_PATH="${SCRIPT_PATH}/compilesketches/.venv"
Expand Down

0 comments on commit 1edb1fd

Please sign in to comment.