Skip to content

Commit de6b80a

Browse files
authored
refactor: fix typo in check_installation function name (#31)
1 parent 633d643 commit de6b80a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/ensure-pkg-manager.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NAME="${PARAM_STR_REF}"
66
VERSION=""
77
SUDO=""
88

9-
check_instalation () {
9+
check_installation () {
1010
local installed_version
1111
local required_version
1212
local tag_regex
@@ -48,7 +48,7 @@ fi
4848
if [[ "${NAME}" == "npm" ]]; then
4949
if [[ -n "${VERSION}" ]]; then
5050
${SUDO} npm i -g npm@"${VERSION}"
51-
check_instalation "${NAME}" "${VERSION}"
51+
check_installation "${NAME}" "${VERSION}"
5252
else
5353
echo "Detected npm version: $(npm --version)"
5454
fi
@@ -70,7 +70,7 @@ if [[ "${NAME}" == "pnpm" ]]; then
7070
fi
7171

7272
${SUDO} npm i -g pnpm@"${VERSION}"
73-
check_instalation "${NAME}" "${VERSION}"
73+
check_installation "${NAME}" "${VERSION}"
7474

7575
echo "Setting ~/.pnpm-store as the store directory"
7676

0 commit comments

Comments
 (0)