From a0badc04495bddc260f7452fbceae07c7dd957cf Mon Sep 17 00:00:00 2001 From: Surferlul Date: Thu, 30 Sep 2021 23:55:52 +0200 Subject: [PATCH] changed installer for submodule system --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0126ef0..2620797 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,8 @@ echo "Downloading AwesomeWM Configs" git clone https://github.com/Surferlul/awesome.git $CACHE_DIR [ -d "$HOME/.config/awesome" ] && echo "Backing up previous configs" && tar cf $CACHE_DIR/previous.tar $HOME/.config/awesome/ && echo "Removing previous configs" && rm -rf $HOME/.config/awesome/ echo "Downloading Vicious widgets for AwesomeWM" -git clone https://github.com/vicious-widgets/vicious.git $CACHE_DIR/vicious +git -C $CACHE_DIR submodule init vicious +git -C $CACHE_DIR submodule update echo "Moving configs to install location" mv $CACHE_DIR $HOME/.config/awesome [ "$1" != "--preserve-git" ] && echo "Removing git from configs" && rm -rf $HOME/.config/awesome/.git