Skip to content
Snippets Groups Projects

Add shellcheck CI job

Merged Tiger Watson requested to merge tw/misc-code-quality-fixes into master
1 unresolved thread
Compare and Show latest version
5 files
+ 15
5
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 2
2
@@ -10,7 +10,7 @@ BACKUP_DIR=.backups
dest_file=$1
shift
OVERWRITE=$(bin/allow-overwrite $dest_file)
OVERWRITE=$(bin/allow-overwrite "$dest_file")
temp_file=$(mktemp)
function finish {
@@ -28,7 +28,7 @@ if [[ -f "$dest_file" ]]; then
echo "-------------------------------------------------------------------------------------------------------------"
[[ $(tput colors) -ge 8 ]] && color_arg="--color" || color_arg=""
git --no-pager diff --no-index ${color_arg} -u "${dest_file}" "${temp_file}" || true
git --no-pager diff --no-index "${color_arg}" -u "${dest_file}" "${temp_file}" || true
echo "-------------------------------------------------------------------------------------------------------------"
if $OVERWRITE; then
Loading