mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-20 20:44:18 +02:00
Add checks for executability of scripts.
This commit is contained in:
parent
b1fb4d62d2
commit
060ed7b566
3 changed files with 22 additions and 2 deletions
19
test/script-executability
Normal file
19
test/script-executability
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# Copyright 2024, project-repo and the cagebreak contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Each example script must contain the header unmodified.
|
||||
|
||||
# shellcheck disable=2164
|
||||
cd "${MESONCURRENTCONFIGDIR}"
|
||||
|
||||
RESULT=0
|
||||
|
||||
example_all=$(find example_scripts/)
|
||||
example_exec=$(find example_scripts/ -executable)
|
||||
[[ $example_all = "$example_exec" ]] || RESULT=1
|
||||
|
||||
scripts_all=$(find scripts/)
|
||||
scripts_exec=$(find scripts/ -executable)
|
||||
[[ $scripts_all = "$scripts_exec" ]] || RESULT=1
|
||||
|
||||
exit $RESULT
|
||||
Loading…
Add table
Add a link
Reference in a new issue