From 56206226e0960cd2068444ec3bcbff913eee944a Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 30 2013 14:27:40 +0000 Subject: Update boolean interpretation of configuration value. - Scripts/Bash/Functions/Vcs/vcs.sh: Affirmative values are yes, ye, y or 1. Anything else is considered a negative value. So, `enabled = 1' is affirmative while `enabled = 0' is negative. --- diff --git a/Scripts/Bash/Functions/Vcs/vcs.sh b/Scripts/Bash/Functions/Vcs/vcs.sh index b382580..7585198 100755 --- a/Scripts/Bash/Functions/Vcs/vcs.sh +++ b/Scripts/Bash/Functions/Vcs/vcs.sh @@ -32,7 +32,7 @@ function vcs { # Verify whether version control actions should be performed or # not inside the repository directory structure. local ENABLED=$(cli_getConfigValue "${CLI_BASEDIR}/${CLI_NAME}.conf" "version_control" "enabled") - if [[ ! ${ENABLED} =~ '^(yes|ye|y|0)$' ]];then + if [[ ! ${ENABLED} =~ '^(yes|ye|y|1)$' ]];then return fi