In /usr/bin/mh_linkjars line 19: . /usr/share/maven-repo-helper/mh_lib.sh ^-- SC1091: Not following: /usr/share/maven-repo-helper/mh_lib.sh was not specified as input (see shellcheck -x). In /usr/bin/mh_linkjars line 67: cat debian/$p.poms | while read POM OPT1 OPT2 OPT3 OPT4 OPT5 OPT6 OPT7 OPT8 OPT9 OPT10; do ^------------^ SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. ^-- SC2086: Double quote to prevent globbing and word splitting. ^--^ SC2162: read without -r will mangle backslashes. Did you mean: cat debian/"$p".poms | while read POM OPT1 OPT2 OPT3 OPT4 OPT5 OPT6 OPT7 OPT8 OPT9 OPT10; do In /usr/bin/mh_linkjars line 71: POM_DIR=$(dirname $POM) ^-----^ SC2034: POM_DIR appears unused. Verify use (or export if used externally). ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: POM_DIR=$(dirname "$POM") In /usr/bin/mh_linkjars line 82: C1=$(( $C + 1 )) ^-- SC2004: $/${} is unnecessary on arithmetic variables. In /usr/bin/mh_linkjars line 93: C1=$(( $C + 1 )) ^-- SC2004: $/${} is unnecessary on arithmetic variables. In /usr/bin/mh_linkjars line 99: C=$(( $C + 1 )) ^-- SC2004: $/${} is unnecessary on arithmetic variables. In /usr/bin/mh_linkjars line 104: if [[ ! -z "$VERBOSE" || "$DH_VERBOSE" = "1" ]]; then ^-- SC2236: Use -n instead of ! -z. In /usr/bin/mh_linkjars line 107: mh_linkjar $OPT1 $OPT2 $OPT3 $OPT4 $OPT5 $OPT6 $OPT7 $OPT8 $OPT9 $OPT10 $DH_OPTS $MH_ARGS $POM $ARTIFACT ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^----^ SC2086: Double quote to prevent globbing and word splitting. ^------^ SC2086: Double quote to prevent globbing and word splitting. ^------^ SC2086: Double quote to prevent globbing and word splitting. ^--^ SC2086: Double quote to prevent globbing and word splitting. ^-------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: mh_linkjar "$OPT1" "$OPT2" "$OPT3" "$OPT4" "$OPT5" "$OPT6" "$OPT7" "$OPT8" "$OPT9" "$OPT10" "$DH_OPTS" "$MH_ARGS" "$POM" "$ARTIFACT" In /usr/bin/mh_linkjars line 116: linkpackagejars $PACKAGE ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: linkpackagejars "$PACKAGE" In /usr/bin/mh_linkjars line 118: for p in `findpackages`; do ^------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: for p in $(findpackages); do In /usr/bin/mh_linkjars line 119: if [ -f debian/$p.poms ]; then ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ -f debian/"$p".poms ]; then In /usr/bin/mh_linkjars line 120: linkpackagejars $p ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: linkpackagejars "$p" For more information: https://www.shellcheck.net/wiki/SC2034 -- POM_DIR appears unused. Verify us... https://www.shellcheck.net/wiki/SC1091 -- Not following: /usr/share/maven-r... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...