Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

[mycroft-config] Fix issue #2991 #3015

Merged
merged 2 commits into from
Oct 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/mycroft-config
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ function set_config() {
value=".${value}"
fi

jq "${value} = \"$2\"" ~/.mycroft/mycroft.conf > "${TEMP}/~mycroft.conf"
jq "${value} = \"$2\"" $_conf_file > "${TEMP}/~mycroft.conf"
if [ $? -eq 0 ] ; then
# Successful update, replace the config file
mv "${TEMP}/~mycroft.conf" ~/.mycroft/mycroft.conf
mv "${TEMP}/~mycroft.conf" $_conf_file
signal_reload_config
fi
}
Expand Down