Commit 8b6e9119 authored by Emeric Verschuur's avatar Emeric Verschuur

minor fix

parent 5bedc712
......@@ -474,7 +474,9 @@ bashopts_process_args() {
if [ -n "$bashopts_tool_settings_path" ]; then
# vrite the value to the setting file
(
sed -i "/^$op=/d" $bashopts_tool_settings_path
if [ -f "$bashopts_tool_settings_path" ]; then
sed -i "/^$op=/d" $bashopts_tool_settings_path
fi
if [ "${!op}" != "$dval" ]; then
echo "$(bashopts_get_def_full $op)" >> $bashopts_tool_settings_path
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment