SEARCH-2885 add error handling when version is wrong

This commit is contained in:
dcerbo
2021-07-05 16:57:12 +02:00
parent 725b48ea2b
commit 0ef7f26051
+8
View File
@@ -1,4 +1,12 @@
ALF_VERSION=$1
if [ ! -f $ALF_VERSION.env ]; then
echo "Version \"$ALF_VERSION\" not found!"
echo "Available versions are:"
echo "$(ls *.env | awk '{ print substr( $0, 0, length($0)-4 ) }')"
exit 1
fi
echo "Copying .env for version $ALF_VERSION"
FOLDERS=$(find . -name 'docker-compose.yml' -exec dirname {} \;)