2021-04-03 02:24:41 +00:00
|
|
|
#! /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 ****"
|
2022-10-04 03:35:23 +00:00
|
|
|
if [ ! -f "$f" ] && [ ! -d "$f" ]; then
|
2021-04-03 02:24:41 +00:00
|
|
|
echo "**** $f doesn't exist, skipping release ****"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "**** pre-check is finished ****"
|