mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-2885 add error handling when version is wrong
This commit is contained in:
@@ -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 {} \;)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user