File tree Expand file tree Collapse file tree 10 files changed +55
-1
lines changed
Expand file tree Collapse file tree 10 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ for allowed_command in "${allowed_commands_array[@]}"; do
5454 fi
5555done
5656
57- allowed_commands_array=(BACKUP DEBUG START)
57+ allowed_commands_array=(BACKUP DEBUG DETAILS START UPDATE )
5858for allowed_command in " ${allowed_commands_array[@]} " ; do
5959 if [ " ${allowed_command} " == " ${commandname} " ]; then
6060 check_deps.sh
Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ fn_update_compare() {
152152# The location where the builds are checked and downloaded.
153153remotelocation=" github.com"
154154
155+ if [ " $( command -v jq 2> /dev/null) " ]; then
156+ fn_print_fail_nl " jq is not installed"
157+ fn_script_log_fatal " jq is not installed"
158+ core_exit.sh
159+ fi
160+
155161if [ " ${firstcommandname} " == " INSTALL" ]; then
156162 fn_update_remotebuild
157163 fn_update_dl
Original file line number Diff line number Diff line change @@ -167,6 +167,12 @@ fn_update_compare() {
167167# The location where the builds are checked and downloaded.
168168remotelocation=" mojang.com"
169169
170+ if [ " $( command -v jq 2> /dev/null) " ]; then
171+ fn_print_fail_nl " jq is not installed"
172+ fn_script_log_fatal " jq is not installed"
173+ core_exit.sh
174+ fi
175+
170176if [ " ${firstcommandname} " == " INSTALL" ]; then
171177 fn_update_remotebuild
172178 fn_update_dl
Original file line number Diff line number Diff line change @@ -175,6 +175,12 @@ fn_update_compare() {
175175# The location where the builds are checked and downloaded.
176176remotelocation=" minecraft.net"
177177
178+ if [ " $( command -v jq 2> /dev/null) " ]; then
179+ fn_print_fail_nl " jq is not installed"
180+ fn_script_log_fatal " jq is not installed"
181+ core_exit.sh
182+ fi
183+
178184if [ " ${firstcommandname} " == " INSTALL" ]; then
179185 fn_update_remotebuild
180186 fn_update_dl
Original file line number Diff line number Diff line change @@ -160,6 +160,12 @@ fn_update_compare() {
160160# The location where the builds are checked and downloaded.
161161remotelocation=" linux.mtasa.com"
162162
163+ if [ " $( command -v jq 2> /dev/null) " ]; then
164+ fn_print_fail_nl " jq is not installed"
165+ fn_script_log_fatal " jq is not installed"
166+ core_exit.sh
167+ fi
168+
163169if [ " ${firstcommandname} " == " INSTALL" ]; then
164170 fn_update_remotebuild
165171 fn_update_dl
Original file line number Diff line number Diff line change @@ -177,6 +177,12 @@ fn_update_compare() {
177177# The location where the builds are checked and downloaded.
178178remotelocation=" papermc.io"
179179
180+ if [ " $( command -v jq 2> /dev/null) " ]; then
181+ fn_print_fail_nl " jq is not installed"
182+ fn_script_log_fatal " jq is not installed"
183+ core_exit.sh
184+ fi
185+
180186if [ " ${shortname} " == " pmc" ]; then
181187 paperproject=" paper"
182188elif [ " ${shortname} " == " vpmc" ]; then
Original file line number Diff line number Diff line change 171171# The location where the builds are checked and downloaded.
172172remotelocation=" teamspeak.com"
173173
174+ if [ " $( command -v jq 2> /dev/null) " ]; then
175+ fn_print_fail_nl " jq is not installed"
176+ fn_script_log_fatal " jq is not installed"
177+ core_exit.sh
178+ fi
179+
174180if [ " ${firstcommandname} " == " INSTALL" ]; then
175181 fn_update_remotebuild
176182 fn_update_dl
Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ fn_update_compare() {
153153# The location where the builds are checked and downloaded.
154154remotelocation=" github.com"
155155
156+ if [ " $( command -v jq 2> /dev/null) " ]; then
157+ fn_print_fail_nl " jq is not installed"
158+ fn_script_log_fatal " jq is not installed"
159+ core_exit.sh
160+ fi
161+
156162if [ " ${firstcommandname} " == " INSTALL" ]; then
157163 fn_update_remotebuild
158164 fn_update_dl
Original file line number Diff line number Diff line change @@ -160,6 +160,12 @@ fn_update_compare() {
160160# The location where the builds are checked and downloaded.
161161remotelocation=" vintagestory.at"
162162
163+ if [ " $( command -v jq 2> /dev/null) " ]; then
164+ fn_print_fail_nl " jq is not installed"
165+ fn_script_log_fatal " jq is not installed"
166+ core_exit.sh
167+ fi
168+
163169if [ " ${firstcommandname} " == " INSTALL" ]; then
164170 fn_update_remotebuild
165171 fn_update_dl
Original file line number Diff line number Diff line change @@ -160,6 +160,12 @@ fn_update_compare() {
160160# The location where the builds are checked and downloaded.
161161remotelocation=" github.com"
162162
163+ if [ " $( command -v jq 2> /dev/null) " ]; then
164+ fn_print_fail_nl " jq is not installed"
165+ fn_script_log_fatal " jq is not installed"
166+ core_exit.sh
167+ fi
168+
163169if [ " ${firstcommandname} " == " INSTALL" ]; then
164170 fn_update_remotebuild
165171 fn_update_dl
You can’t perform that action at this time.
0 commit comments