BAN-AI-Communications/k95-mingw

View on GitHub
openssl-0.9.7/util/cygwin.sh

Summary

Maintainability
Test Coverage

Showing 10 of 10 total issues

Use "${var:?}" to ensure this never expands to /etc .
Open

rm -rf ${INSTALL_PREFIX}/etc
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Use "${var:?}" to ensure this never expands to /usr .
Open

rm -rf ${INSTALL_PREFIX}/usr
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Open

cd ${INSTALL_PREFIX}
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Quote this to prevent word splitting.
Open

eval `grep '^VERSION=' Makefile.ssl`
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

ls -l openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

./config ${CONFIG_OPTIONS}
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 -
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 -
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck

Use $(..) instead of legacy ...
Open

eval `grep '^VERSION=' Makefile.ssl`
Severity: Minor
Found in openssl-0.9.7/util/cygwin.sh by shellcheck
Category
Status