Skip to content

Commit f60c65a

Browse files
authored
refactor(core): move curl check to main file (#3740)
1 parent 1a022ca commit f60c65a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lgsm/functions/core_dl.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,3 @@ fn_dl_latest_release_github(){
597597
fi
598598
fi
599599
}
600-
601-
# Check that curl is installed
602-
if [ ! "$(command -v curl 2>/dev/null)" ]; then
603-
echo -e "[ FAIL ] Curl is not installed"
604-
exit 1
605-
fi

linuxgsm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ githubuser="GameServerManagers"
5151
githubrepo="LinuxGSM"
5252
githubbranch="master"
5353

54+
# Check that curl is installed before doing anything
55+
if [ ! "$(command -v curl 2>/dev/null)" ]; then
56+
echo -e "[ FAIL ] Curl is not installed"
57+
exit 1
58+
fi
59+
5460
# Core function that is required first.
5561
core_functions.sh(){
5662
functionfile="${FUNCNAME[0]}"

0 commit comments

Comments
 (0)