mirror of
https://github.com/godotengine/build-containers.git
synced 2026-01-04 18:10:06 +03:00
Merge pull request #122 from umarcor/umarcor/confirm
build: skip confirm if non-interactive
This commit is contained in:
24
build.sh
24
build.sh
@@ -29,17 +29,19 @@ img_version=$godot_branch-$base_distro
|
|||||||
files_root="$(cd dirname "$0"; pwd)/files"
|
files_root="$(cd dirname "$0"; pwd)/files"
|
||||||
build_msvc=0
|
build_msvc=0
|
||||||
|
|
||||||
# Confirm settings
|
if [ ! -z "$PS1" ]; then
|
||||||
echo "Docker image tag: ${img_version}"
|
# Confirm settings
|
||||||
echo
|
echo "Docker image tag: ${img_version}"
|
||||||
while true; do
|
echo
|
||||||
read -p "Is this correct? [y/n] " yn
|
while true; do
|
||||||
case $yn in
|
read -p "Is this correct? [y/n] " yn
|
||||||
[Yy]* ) break;;
|
case $yn in
|
||||||
[Nn]* ) exit 1;;
|
[Yy]* ) break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
[Nn]* ) exit 1;;
|
||||||
esac
|
* ) echo "Please answer yes or no.";;
|
||||||
done
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p logs
|
mkdir -p logs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user