In /usr/bin/debclean line 5: PROGNAME=`basename $0` ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: PROGNAME=$(basename "$0") In /usr/bin/debclean line 55: DEFAULT_DEBCLEAN_CLEANDEBS=no ^------------------------^ SC2034: DEFAULT_DEBCLEAN_CLEANDEBS appears unused. Verify use (or export if used externally). In /usr/bin/debclean line 56: DEFAULT_DEVSCRIPTS_CHECK_DIRNAME_LEVEL=1 ^-- SC2034: DEFAULT_DEVSCRIPTS_CHECK_DIRNAME_LEVEL appears unused. Verify use (or export if used externally). In /usr/bin/debclean line 57: DEFAULT_DEVSCRIPTS_CHECK_DIRNAME_REGEX='PACKAGE(-.+)?' ^-- SC2034: DEFAULT_DEVSCRIPTS_CHECK_DIRNAME_REGEX appears unused. Verify use (or export if used externally). In /usr/bin/debclean line 61: if [ "$1" = "--no-conf" -o "$1" = "--noconf" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/debclean line 73: eval $( ^-- SC2046: Quote this to prevent word splitting. In /usr/bin/debclean line 81: [ -r $file ] && . $file ^---^ SC1090: Can't follow non-constant source. Use a directive to specify location. In /usr/bin/debclean line 84: set | egrep '^(DEBCLEAN|DEVSCRIPTS)_') ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. In /usr/bin/debclean line 122: if [ $? != 0 ] ; then exit 1 ; fi ^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In /usr/bin/debclean line 124: eval set -- $TEMP ^---^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: eval set -- "$TEMP" In /usr/bin/debclean line 164: OPWD="`pwd`" ^---^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: OPWD="$(pwd)" In /usr/bin/debclean line 166: TESTDIR=$(echo $OPWD | egrep -o '.*/debian/?' | sed 's/\/debian\/\?$//') ^---^ SC2086: Double quote to prevent globbing and word splitting. ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. Did you mean: TESTDIR=$(echo "$OPWD" | egrep -o '.*/debian/?' | sed 's/\/debian\/\?$//') In /usr/bin/debclean line 180: cd $DIR ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: cd "$DIR" In /usr/bin/debclean line 188: package="`dpkg-parsechangelog -SSource`" ^----------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: package="$(dpkg-parsechangelog -SSource)" In /usr/bin/debclean line 195: if [ $CHECK_DIRNAME_LEVEL -eq 2 -o \ ^------------------^ SC2086: Double quote to prevent globbing and word splitting. ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. Did you mean: if [ "$CHECK_DIRNAME_LEVEL" -eq 2 -o \ In /usr/bin/debclean line 196: \( $CHECK_DIRNAME_LEVEL -eq 1 -a "$OPWD" != "`pwd`" \) ]; then ^------------------^ SC2086: Double quote to prevent globbing and word splitting. ^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. ^---^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: \( "$CHECK_DIRNAME_LEVEL" -eq 1 -a "$OPWD" != "$(pwd)" \) ]; then In /usr/bin/debclean line 203: echo "Full directory path `pwd` does not match package name, skipping." >&2 ^---^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: echo "Full directory path $(pwd) does not match package name, skipping." >&2 In /usr/bin/debclean line 204: echo "Run $progname --help for more information on directory name matching." >&2 ^-------^ SC2154: progname is referenced but not assigned (did you mean 'PROGNAME'?). In /usr/bin/debclean line 215: rm -f *.changes *.deb *.build ^-- SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. ^-- SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. ^-- SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. For more information: https://www.shellcheck.net/wiki/SC1090 -- Can't follow non-constant source.... https://www.shellcheck.net/wiki/SC2034 -- DEFAULT_DEBCLEAN_CLEANDEBS appear... https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...