say Y by default if lock is present

This commit is contained in:
Jean-Baptiste 2017-12-17 15:25:32 +01:00 committed by GitHub
parent eafcc5b177
commit 56daf84eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,12 +181,12 @@ then
# If the lock file exist
echo "The lock file $lock_file is present. Package check would not continue."
if [ $bash_mode -ne 1 ]; then
echo -n "Do you want to continue anyway? (y/n) :"
echo -n "Do you want to continue anyway? (Y/n) :"
read answer
fi
# Set the answer at lowercase only
answer=${answer,,}
if [ "${answer:0:1}" != "y" ]
if [ "${answer:0:1}" != "y" ] || [ ${answer:0:1} == '' ]
then
echo "Cancel Package check execution"
exit 0