diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-16 09:51:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-16 09:51:11 -0300 |
commit | 4c6259e12abb40d5bc60424ea8eea5e49c4e5615 (patch) | |
tree | bbbd107e58ae0c4603e9821dfb7f1e4858dfa1fd | |
parent | 3060d840da45d91ce717b5e6dcce070e08f42983 (diff) | |
download | wrappers-4c6259e12abb40d5bc60424ea8eea5e49c4e5615.tar.gz wrappers-4c6259e12abb40d5bc60424ea8eea5e49c4e5615.tar.bz2 |
Delete top_panel_size config and the following blank line at mc config
-rwxr-xr-x | mc | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -41,5 +41,17 @@ fi # # If $INI is a link, $CONF will be the link destination. # That's important because `sed -i` usually breaks the linking. -sed -i '/^left_panel_size=.*$/d' $CONF -sed -i '/^top_panel_size=.*$/d' $CONF + +# Delete left_panel_size config +if grep -q "^left_panel_size=.*$" $CONF; then + #sed -i '/^left_panel_size=.*$/,+1 d' $CONF + sed -i '/^left_panel_size=.*$/ d' $CONF +fi + +# Delete top_panel_size config and the following blank line +if grep -q "^top_panel_size=.*$" $CONF; then + sed -i '/^top_panel_size=.*$/,+1 d' $CONF +fi + +# Delete all empty lines from config +#sed -i '/^$/d' $CONF |