]> git.donarmstrong.com Git - neurodebian.git/blobdiff - debian/neurodebian.config
Rudimentary .travis.yml to test that our script for enabling neurodebian works
[neurodebian.git] / debian / neurodebian.config
index 2d8968885d9595a32434765cddd66547d9c11649..ef8878606725ed85f2dd55bea90aa0cd56165d7e 100755 (executable)
@@ -31,18 +31,18 @@ STATE=1
 while [ "$STATE" != 0 -a "$STATE" -lt 9 ]; do
     case $STATE in
                1)
-                       # allow to be overriden by environment variable as discussed with
+                       # allow to be overridden by environment variable as discussed with
                        # ftpmaster
                        if [ ! -z "${NEURODEBIAN_ENABLE:-}" ]; then
                                case "${NEURODEBIAN_ENABLE}" in
                                        true|yes|YES|1) enable=true;;
                                        false|no|NO|0)  enable=false;;
-                                       *) echo "Non-supported value $NEURODEBIAN_ENABLE of NEURODEBIAN_ENABLE env variable. Use yes or no" >&2;
+                                       *) echo "ERROR: Non-supported value $NEURODEBIAN_ENABLE of NEURODEBIAN_ENABLE env variable. Use yes or no" >&2;
                                                exit 1;;
                                esac
                                db_set neurodebian/enable $enable
                        fi
-                       db_input medium neurodebian/enable || true
+                       db_input high neurodebian/enable || true
                        ;;
         2)
                        neurodebian_releases="$(ND_IFS=', ' nd-configurerepo --print-releases)"
@@ -78,7 +78,7 @@ while [ "$STATE" != 0 -a "$STATE" -lt 9 ]; do
                                db_get neurodebian/enable # get new value
                                if [ "$RET" = "false" ]; then
                                        # no need to proceed with further questions
-                                       if /bin/ls /etc/apt/sources.list.d/neurodebian.sources*.list &>/dev/null; then
+                                       if ls /etc/apt/sources.list.d/neurodebian.sources*.list &>/dev/null; then
                                                # we have configuration present -- display a note about apt-get update
                                                STATE=8
                                        else