bazarr/.github/scripts/pre_check.sh
Goran Džaferi 25b8738c05
no log: [scripts] prevent globbing and word splitting (#1963)
Ran shellcheck and applied suggested fixes for prevention of
globbing and word splitting.

https://www.shellcheck.net/wiki/SC2046
https://www.shellcheck.net/wiki/SC2086
2022-10-03 23:35:23 -04:00

18 lines
No EOL
455 B
Bash
Executable file

#! /bin/bash
# This script is used in release-it as hook
# Change how this script is triggered by editing .release-it.json
# NOTE: Please make sure working directory is in root of repo
set -e
file_list=$(cat .github/files_to_copy)
for f in $file_list
do
echo "**** checking $f ****"
if [ ! -f "$f" ] && [ ! -d "$f" ]; then
echo "**** $f doesn't exist, skipping release ****"
exit 1
fi
done
echo "**** pre-check is finished ****"