cagebreak/test/shellcheck
2023-04-13 17:24:14 +02:00

19 lines
458 B
Bash

#!/bin/bash
# Copyright 2023, project-repo and the cagebreak contributors
# SPDX-License-Identifier: MIT
RESULT=0
set -x
# shellcheck disable=2164
cd "${MESONCURRENTCONFIGDIR}/test"
# shellcheck disable=2046
shellcheck --source-path=../example_scripts/ $(ls -Itesting-configurations) || RESULT=1
cd "${MESONCURRENTCONFIGDIR}/example_scripts/" || RESULT=1
shellcheck ./*
cd "${MESONCURRENTCONFIGDIR}/scripts/" || RESULT=1
shellcheck ./*
exit "${RESULT}"