Fixing AVX / Precise unavailable check
@@ -191,8 +191,8 @@ in mycroft.conf.
$SUDO touch /etc/mycroft/mycroft.conf
$SUDO bash -c 'echo "{ \"use_precise\": true }" > /etc/mycroft/mycroft.conf'
else
- $SUDO bash -c 'jq ". + { \"use_precise\": true }" /etc/mycroft/mycroft.conf > tmp.mycroft.conf'
- $SUDO mv -f tmp.mycroft.conf /etc/mycroft/mycroft.conf
+ # Ensure dependency installed to merge configs
+ disable_precise_later=true
fi
else
echo -e "$HIGHLIGHT N - quit the installation $RESET"
@@ -467,6 +467,12 @@ function install_venv() {
install_deps
+# It's later. Update existing config with jq.
+if [ $disable_precise_later == true ]; then
+ $SUDO bash -c 'jq ". + { \"use_precise\": true }" /etc/mycroft/mycroft.conf > tmp.mycroft.conf'
+ $SUDO mv -f tmp.mycroft.conf /etc/mycroft/mycroft.conf
+fi
+
# Configure to use the standard commit template for
# this repo only.
git config commit.template .gitmessage
