Updated --force again

This commit is contained in:
Nathaniel Landau
2015-03-31 08:27:45 -04:00
parent ad41d1437e
commit e3afe47568

View File

@@ -260,7 +260,7 @@ function is_confirmed() {
if [[ "${force}" == "1" ]]; then if [[ "${force}" == "1" ]]; then
return 0 return 0
else else
if [[ "$REPLY" =~ ^[Yy]$ ]]; then if [[ "${REPLY}" =~ ^[Yy]$ ]]; then
return 0 return 0
fi fi
return 1 return 1
@@ -268,10 +268,14 @@ function is_confirmed() {
} }
function is_not_confirmed() { function is_not_confirmed() {
if [[ "$REPLY" =~ ^[Nn]$ ]]; then if [[ "${force}" == "1" ]]; then
return 0 return 1
else
if [[ "${REPLY}" =~ ^[Nn]$ ]]; then
return 0
fi
return 1
fi fi
return 1
} }
# Skip something # Skip something