mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

commit 79f9cb065d6a06d48c463a305bdd65bc956730d3
parent 9aa83027868b6661cf926ed603750a6e0ecfa705
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat,  7 Nov 2020 11:39:45 +0300

get_domains(): use if statement

Diffstat:
Mbin/muw | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/muw b/bin/muw @@ -146,8 +146,8 @@ get_domains() { { [ -f "$sharedir/domains.csv" ] && cat "$sharedir/domains.csv" cat "$confdir/domains.csv" ;} | sort -uo "$confdir/domains.csv" else - { [ -f "$sharedir/domains.csv" ] && cat "$sharedir/domains.csv" - } > "$confdir/domains.csv" + if [ -f "$sharedir/domains.csv" ]; then + cat "$sharedir/domains.csv"; fi > "$confdir/domains.csv" fi }