Loading bashopts.sh +2 −0 Original line number Diff line number Diff line Loading @@ -661,6 +661,8 @@ bashopts_process_option() { if [ -n "$bashopts_tool_settings_path" ]; then # vrite the value to the setting file ( test -d "$(dirname $bashopts_tool_settings_path)" || \ mkdir -p "$(dirname $bashopts_tool_settings_path)" if [ -f "$bashopts_tool_settings_path" ]; then # remove old value sed -i "/^$op=/d" $bashopts_tool_settings_path Loading test.sh +1 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ _test_case_10() { } _test_case_11() { bashopts_setup -n "$0" -d "Test case $0" -s /this/is/an/inacessible/file bashopts_setup -n "$0" -d "Test case $0" -s /dev/null/invalid bashopts_declare -n simple_val -s -l value -d "Simple value" -t string -v 'val' Loading Loading
bashopts.sh +2 −0 Original line number Diff line number Diff line Loading @@ -661,6 +661,8 @@ bashopts_process_option() { if [ -n "$bashopts_tool_settings_path" ]; then # vrite the value to the setting file ( test -d "$(dirname $bashopts_tool_settings_path)" || \ mkdir -p "$(dirname $bashopts_tool_settings_path)" if [ -f "$bashopts_tool_settings_path" ]; then # remove old value sed -i "/^$op=/d" $bashopts_tool_settings_path Loading
test.sh +1 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ _test_case_10() { } _test_case_11() { bashopts_setup -n "$0" -d "Test case $0" -s /this/is/an/inacessible/file bashopts_setup -n "$0" -d "Test case $0" -s /dev/null/invalid bashopts_declare -n simple_val -s -l value -d "Simple value" -t string -v 'val' Loading