From ac8063e0fdd967fca54d43eb25a90703b3ce357a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=20V=C3=A1zquez?= Date: Sat, 3 Dec 2022 13:52:17 +0100 Subject: [PATCH] Fix code style script (#472) --- config/androidstudio/install-codestyle.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/androidstudio/install-codestyle.sh b/config/androidstudio/install-codestyle.sh index b55baa24..6cc873f9 100755 --- a/config/androidstudio/install-codestyle.sh +++ b/config/androidstudio/install-codestyle.sh @@ -15,11 +15,9 @@ for i in $HOME/Library/Preferences/IntelliJIdea* \ $HOME/Library/Application\ Support/Google/AndroidStudio* \ $HOME/Library/Application\ Support/JetBrains/IdeaIC* do - if [[ -d $i ]]; then - # create codestyle folders - mkdir -p $i/codestyles - # copy xmls - cp -frv "$CONFIGS/codestyle"/* $i/codestyles + if [[ -d "$i" ]]; then + mkdir -p "$i/codestyles" + cp -frv "$CONFIGS/codestyle"/* "$i/codestyles" fi done