From 8f071137d1f0a26419afb2f2299920fafaeb223b Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Wed, 24 Jun 2020 05:34:51 +0200 Subject: [PATCH] Meta: Give SERENITY_ROOT a default value in `CLion/run.sh` --- Meta/CLion/run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Meta/CLion/run.sh b/Meta/CLion/run.sh index 1ded36b877..394ab5ff8d 100755 --- a/Meta/CLion/run.sh +++ b/Meta/CLion/run.sh @@ -5,9 +5,10 @@ set -e : "${SERENITY_RAM_SIZE:='256M'}" export SERENITY_RAM_SIZE -# set this to the Build directory in serenity -: "${SERENITY_BUILD:='/mnt/c/Users/Ragnarok/serenity-project/serenity/Build'}" -export SERENITY_BUILD +# set SERENITY_ROOT to the path to the serenity directory +: "${SERENITY_ROOT:='/mnt/c/Users/Ragnarok/serenity-project/serenity'}" +: "${SERENITY_BUILD:="$SERENITY_ROOT/Build"}" +export SERENITY_ROOT SERENITY_BUILD cd -P -- "$SERENITY_BUILD" || exit make install