Improve config.sh

This commit is contained in:
Daniel Carrillo 2020-05-01 16:11:54 +02:00
parent fbea1d3124
commit 2f5cd1cb23
1 changed files with 12 additions and 6 deletions

View File

@ -58,12 +58,18 @@ main()
{
cd "$(dirname "$0")"
if [ x"$1" = x"--dump-dconf" ]; then
dconf_dumper
else
copy_dotfiles
dconf_loader
fi
case "$1" in
--dump-dconf)
dconf_dumper
;;
--install)
copy_dotfiles
dconf_loader
;;
**)
echo "Usage: $0 <--dump-dconf|--install>"
;;
esac
cd - > /dev/null
}