Skip to content

Commit c9c3a43

Browse files
authored
Merge pull request #813 from mbtamuli/fix_install_script
Update install script.
2 parents a37396d + ae0904f commit c9c3a43

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
# This script is designed to install latest EasyEngine or
55
# to update current EasyEngine from 2.x to 3.x
66

7-
# Checking permissions
8-
if [[ $EUID -ne 0 ]]; then
9-
ee_lib_echo_fail "Sudo privilege required..."
10-
ee_lib_echo_fail "Uses: wget -qO ee rt.cx/ee && sudo bash ee"
11-
exit 100
12-
fi
13-
147
# Define echo function
158
# Blue color
169
function ee_lib_echo()
@@ -28,6 +21,13 @@ function ee_lib_echo_fail()
2821
echo $(tput setaf 1)$@$(tput sgr0)
2922
}
3023

24+
# Checking permissions
25+
if [[ $EUID -ne 0 ]]; then
26+
ee_lib_echo_fail "Sudo privilege required..."
27+
ee_lib_echo_fail "Uses: wget -qO ee rt.cx/ee && sudo bash ee"
28+
exit 100
29+
fi
30+
3131
# Capture errors
3232
function ee_lib_error()
3333
{

0 commit comments

Comments
 (0)