- SC2034: PN appears unused. Verify use (or export if used externally).
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/grml/language-functions was not specified as input (see shellcheck -x).
SC1117 was retired due to noise in koalaman/shellcheck@
d8a32da07.
codecheck: shellcheck pythoncheck ## Run shellcheck and pythoncheck
shellcheck: ## Run shellcheck
- for shellfile in usr_bin/* usr_sbin/* usr_share/*; do head -1 "$${shellfile}" | grep -q "/bin/bash\|/bin/sh" && shellcheck "$${shellfile}"; done
+ for shellfile in usr_bin/* usr_sbin/* usr_share/*; do head -1 "$${shellfile}" | grep -q "/bin/bash\|/bin/sh" && shellcheck -x "$${shellfile}"; done
.ONESHELL:
pythoncheck: ## Run shellcheck
################################################################################
CONFFILE=/etc/default/keyboard
-PN="$(basename $0)"
+PN="$(basename "$0")"
usage(){
- echo "Usage: $0 <language>"
+ echo "Usage: ${PN} <language>"
echo "supported values: at, ch, de, dvorak, es, fr, it, jp, us"
}
LANGUAGE="$1"
+# shellcheck disable=SC1091
. /etc/grml/language-functions
if [ -n "$XKEYBOARD" ] ; then