From bd51b52c9c0533201664163b8a4f0a2ab8ef381a Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Tue, 24 Aug 2021 22:50:48 +0200 Subject: [PATCH] Fixed string for front existance check --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ac05b97..a5b030a 100755 --- a/install.sh +++ b/install.sh @@ -12,4 +12,4 @@ echo "Moving configs to install location" mv $CACHE_DIR $HOME/.config/awesome [ "$1" != "--preserve-git" ] && rm -rf $HOME/.config/awesome/.git [ ! -d "$HOME/.fonts" ] && echo "Creating ~/.fonts directory" && mkdir $HOME/.fonts -[ -z "$(ls $HOME/.fonts | grep "[Ii]ndie *[Ff]lower")" ] && echo "Indie Flower doesn't exist, installing" && mkdir $CACHE_DIR && curl 'https://google-webfonts-helper.herokuapp.com/api/fonts/indie-flower?download=zip&subsets=latin&variants=regular' > $CACHE_DIR/IndieFlower.zip && 7z e -y $CACHE_DIR/IndieFlower.zip -o$CACHE_DIR/ && cp $CACHE_DIR/*.ttf $HOME/.fonts && rm -rf $CACHE_DIR +[ -z '$(ls $HOME/.fonts | grep "[Ii]ndie *[Ff]lower")' ] && echo "Indie Flower doesn't exist, installing" && mkdir $CACHE_DIR && curl 'https://google-webfonts-helper.herokuapp.com/api/fonts/indie-flower?download=zip&subsets=latin&variants=regular' > $CACHE_DIR/IndieFlower.zip && 7z e -y $CACHE_DIR/IndieFlower.zip -o$CACHE_DIR/ && cp $CACHE_DIR/*.ttf $HOME/.fonts && rm -rf $CACHE_DIR