Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 8e51c47

Browse files
committed
Prefer yarn, don't init gui twice
1 parent c43b758 commit 8e51c47

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

install.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ echo " * Setting up GUI..."
5252

5353
cd gui
5454

55-
command -v npm >/dev/null 2>&1 && npm install
56-
command -v yarn >/dev/null 2>&1 && yarn
55+
function finished() {
56+
# done?
57+
echo " * Success! You can now open the project in IntelliJ (or whatever IDE you prefer)"
58+
exit
59+
}
5760

58-
# done?
59-
echo " * Success! You can now open the project in IntelliJ (or whatever IDE you prefer)"
61+
# don't install the project twice, lol
62+
# prefer yarn cause yarn is better, lol
63+
command -v yarn >/dev/null 2>&1 && yarn && finished
64+
command -v npm >/dev/null 2>&1 && npm install && finished

0 commit comments

Comments
 (0)