In /usr/bin/mh_unpatchpoms 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_unpatchpoms line 39: VERBOSE=$(getarg v verbose) ^-----^ SC2034: VERBOSE appears unused. Verify use (or export if used externally). In /usr/bin/mh_unpatchpoms line 43: cat debian/$PACKAGE.poms | while read POM OPT1 OPT2; 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. ^--^ SC2034: OPT1 appears unused. Verify use (or export if used externally). ^--^ SC2034: OPT2 appears unused. Verify use (or export if used externally). Did you mean: cat debian/"$PACKAGE".poms | while read POM OPT1 OPT2; do In /usr/bin/mh_unpatchpoms line 46: if [ ! -z "$POM" ]; then ^-- SC2236: Use -n instead of ! -z. In /usr/bin/mh_unpatchpoms line 47: if [ -e ${POM}.save ]; then ^----^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ -e "${POM}".save ]; then In /usr/bin/mh_unpatchpoms line 48: rm $POM ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: rm "$POM" In /usr/bin/mh_unpatchpoms line 49: mv ${POM}.save $POM ^----^ SC2086: Double quote to prevent globbing and word splitting. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: mv "${POM}".save "$POM" For more information: https://www.shellcheck.net/wiki/SC2034 -- OPT1 appears unused. Verify use (... https://www.shellcheck.net/wiki/SC1091 -- Not following: /usr/share/maven-r... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...