summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2b7cd25)
SC2181 = See if you can use ${variable//search/replace} instead
This doesn't work for the $CHROOT_VARIABLES which includes
variables with strings like "/", so we can't rely on the
${variable//search/replace} approach. Quoting from
https://github.com/koalaman/shellcheck/wiki/SC2001:
| Utilizing some of the more complex capabilities of sed is
| required occasionally and it is safe to ignore SC2001.
# run shellcheck tests
docker run koalaman/shellcheck:stable --version
# run shellcheck tests
docker run koalaman/shellcheck:stable --version
-docker run --rm -v "$(pwd)":/code koalaman/shellcheck:stable -e SC2181 /code/chroot-script /code/grml-debootstrap
+docker run --rm -v "$(pwd)":/code koalaman/shellcheck:stable -e SC2181 -e SC2001 /code/chroot-script /code/grml-debootstrap
# build Debian package
if [ -z "${TRAVIS:-}" ] ; then
# build Debian package
if [ -z "${TRAVIS:-}" ] ; then