From 0aebb8c97bec16a8d9d39d8ff4a69f462993957e Mon Sep 17 00:00:00 2001 From: southerntofu Date: Wed, 23 Sep 2020 12:51:09 -0400 Subject: [PATCH] setup: Make sure submodule is cloned and translations setup --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index fbbae58..821ba5f 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ ORIGDIR="$(pwd)" cd "$(dirname "$0")" # Ensure the spec submodule was cloned -if [ ! -d spec ]; then +if [ ! -f spec/README.md ]; then echo "git submodule was not initialized before. Doing it now" git submodule init if ! git submodule update; then @@ -16,7 +16,7 @@ fi # Copy the translations to ~/.local/share/forgebuild FORGEBUILD_DATA=$HOME/.local/share/forgebuild -if [ ! -d $FORGEBUILD_DATA ]; then +if [ ! -f $FORGEBUILD_DATA/i18n/en.json ]; then if ! mkdir -p $FORGEBUILD_DATA; then echo "Failed to create folder $FORGEBUILD_DATA to store translations" exit 2