added support forpodman-compose.yml

This commit is contained in:
Shihaam Abdul Rahman 2023-10-06 00:32:25 +05:00
parent 20d4685a13
commit db6bafc015
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -34,8 +34,7 @@ check_file() {
esac
done
# Check if file is provided, if not look for default files
# Check if file is provided, if not look for default files
if [ -z "$file" ]; then
if [ -f "compose.yaml" ]; then
file="compose.yaml"
@ -47,12 +46,14 @@ check_file() {
file="docker-compose.yml"
elif [ -f "podman-compose.yaml" ]; then
file="podman-compose.yaml"
elif [ -f "podman-compose.yml" ]; then
file="podman-compose.yml"
elif [ -f "container-compose.yaml" ]; then
file="container-compose.yaml"
elif [ -f "container-compose.yml" ]; then
file="container-compose.yml"
else
echo "no compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml, podman-compose.yaml, container-compose.yaml or container-compose.yml file found, pass files with -f"
echo "no compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml, podman-compose.yml, podman-compose.yaml, container-compose.yaml or container-compose.yml file found, pass files with -f"
return 1
fi
elif [ ! -f "$file" ]; then