Skip to content

Commit 8fc0fcd

Browse files
authored
Fixed More Codacy Issues (#88)
2 parents 6587464 + f86b3d2 commit 8fc0fcd

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ update() {
5151
return
5252
fi
5353
54-
curl -fsSL ${UPDATE_SCRIPT_SOURCE_URL} | sudo \${SHELL}
54+
curl -fsSL "${UPDATE_SCRIPT_SOURCE_URL}" | sudo \${SHELL}
5555
}
5656
5757
EOF
@@ -134,18 +134,18 @@ install_pkg() {
134134
exit 1
135135
fi
136136

137-
case ${ADJUSTED_ID} in
137+
case "${ADJUSTED_ID}" in
138138
debian)
139-
${PKG_MGR_CMD} update && ${INSTALL_CMD} "${pkg_name}"
139+
"${PKG_MGR_CMD}" update && "${INSTALL_CMD}" "${pkg_name}"
140140
;;
141141
rhel)
142-
${PKG_MGR_CMD} update && ${INSTALL_CMD} "${pkg_name}"
142+
"${PKG_MGR_CMD}" update && "${INSTALL_CMD}" "${pkg_name}"
143143
;;
144144
alpine)
145-
${PKG_MGR_CMD} update && ${INSTALL_CMD} "${pkg_name}"
145+
"${PKG_MGR_CMD}" update && "${INSTALL_CMD}" "${pkg_name}"
146146
;;
147147
arch)
148-
${INSTALL_CMD} "${pkg_name}"
148+
"${INSTALL_CMD}" "${pkg_name}"
149149
;;
150150
*)
151151
print_err "Error: Unable to install ${pkg_name} for distro ${ID}"
@@ -158,7 +158,7 @@ install_pkg() {
158158
# Description: Update shell configuration files
159159
update_rc() {
160160
_rc=""
161-
case ${ADJUSTED_ID} in
161+
case "${ADJUSTED_ID}" in
162162
debian | rhel)
163163
_rc="${HOME}/.bashrc"
164164
;;
@@ -200,7 +200,7 @@ update_rc() {
200200

201201
OS=$(uname)
202202

203-
case ${OS} in
203+
case "${OS}" in
204204
Linux)
205205
# Bring in ID, ID_LIKE, VERSION_ID, VERSION_CODENAME
206206
# shellcheck source=/dev/null

0 commit comments

Comments
 (0)