1
0
mirror of https://github.com/lxc/distrobuilder.git synced 2026-02-05 06:45:19 +01:00
Files
distrobuilder/test/lint/mixed-whitespace.sh
Thomas Hipp b89502533e Use LXD-style static analysis
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2023-04-24 08:37:18 +02:00

10 lines
223 B
Bash
Executable File

#!/bin/sh -eu
echo "Checking for mixed tabs and spaces in shell scripts..."
OUT=$(git grep --untracked -lP '\t' '*.sh' || true)
if [ -n "${OUT}" ]; then
echo "ERROR: mixed tabs and spaces in script: ${OUT}"
exit 1
fi