@@ -220,12 +220,14 @@ do_python() {
220
220
do_checksum () {
221
221
if exists sha256sum; then
222
222
echo " Comparing checksum with sha256sum..."
223
- checksum=$( sha256sum $1 | awk ' { print $1 }' )
224
- return " $( test " x$checksum " = " x$2 " ) "
223
+ checksum=` sha256sum $1 | awk ' { print $1 }' `
224
+ # shellcheck disable=SC2046
225
+ return ` test " x$checksum " = " x$2 " `
225
226
elif exists shasum; then
226
227
echo " Comparing checksum with shasum..."
227
- checksum=$( shasum -a 256 $1 | awk ' { print $1 }' )
228
- return " $( test " x$checksum " = " x$2 " ) "
228
+ checksum=` shasum -a 256 $1 | awk ' { print $1 }' `
229
+ # shellcheck disable=SC2046
230
+ return ` test " x$checksum " = " x$2 " `
229
231
else
230
232
echo " WARNING: could not find a valid checksum program, pre-install shasum or sha256sum in your O/S image to get validation..."
231
233
return 0
@@ -331,7 +333,8 @@ install_file() {
331
333
echo " installing dmg file..."
332
334
hdiutil detach " /Volumes/cinc_project" > /dev/null 2>&1 || true
333
335
hdiutil attach " $2 " -mountpoint " /Volumes/cinc_project"
334
- cd / && /usr/sbin/installer -pkg " $( find " /Volumes/cinc_project" -name \* .pkg) " -target /
336
+ # shellcheck disable=SC2046
337
+ cd / && /usr/sbin/installer -pkg ` find " /Volumes/cinc_project" -name \* .pkg` -target /
335
338
hdiutil detach " /Volumes/cinc_project"
336
339
;;
337
340
" sh" )
0 commit comments