Skip to content

Commit d3440aa

Browse files
committed
fix: resolve jq dependency issue
1 parent 93486cc commit d3440aa

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

lgsm/modules/info_game.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ if [ -z "${displaymasterserver}" ]; then
25762576
if [ -z "${port3}" ]; then
25772577
port3="123456789"
25782578
fi
2579-
if [ "$(command -v jq 2> /dev/null)" ]; then
2579+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
25802580
if [ -n "${ip}" ] && [ -n "${port}" ]; then
25812581
if [ "${steammaster}" == "true" ] || [ "${commandname}" == "DEV-QUERY-RAW" ]; then
25822582
# Query external IP first as most liky to succeed.

lgsm/modules/update_jk2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn_update_compare() {
152152
# The location where the builds are checked and downloaded.
153153
remotelocation="github.com"
154154

155-
if [ "$(command -v jq 2> /dev/null)" ]; then
155+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
156156
fn_print_fail_nl "jq is not installed"
157157
fn_script_log_fail "jq is not installed"
158158
core_exit.sh

lgsm/modules/update_mc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fn_update_compare() {
167167
# The location where the builds are checked and downloaded.
168168
remotelocation="mojang.com"
169169

170-
if [ "$(command -v jq 2> /dev/null)" ]; then
170+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
171171
fn_print_fail_nl "jq is not installed"
172172
fn_script_log_fail "jq is not installed"
173173
core_exit.sh

lgsm/modules/update_mcb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fn_update_compare() {
175175
# The location where the builds are checked and downloaded.
176176
remotelocation="minecraft.net"
177177

178-
if [ "$(command -v jq 2> /dev/null)" ]; then
178+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
179179
fn_print_fail_nl "jq is not installed"
180180
fn_script_log_fail "jq is not installed"
181181
core_exit.sh

lgsm/modules/update_mta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn_update_compare() {
160160
# The location where the builds are checked and downloaded.
161161
remotelocation="linux.mtasa.com"
162162

163-
if [ "$(command -v jq 2> /dev/null)" ]; then
163+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
164164
fn_print_fail_nl "jq is not installed"
165165
fn_script_log_fail "jq is not installed"
166166
core_exit.sh

lgsm/modules/update_pmc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn_update_compare() {
177177
# The location where the builds are checked and downloaded.
178178
remotelocation="papermc.io"
179179

180-
if [ "$(command -v jq 2> /dev/null)" ]; then
180+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
181181
fn_print_fail_nl "jq is not installed"
182182
fn_script_log_fail "jq is not installed"
183183
core_exit.sh

lgsm/modules/update_ts3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fi
171171
# The location where the builds are checked and downloaded.
172172
remotelocation="teamspeak.com"
173173

174-
if [ "$(command -v jq 2> /dev/null)" ]; then
174+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
175175
fn_print_fail_nl "jq is not installed"
176176
fn_script_log_fail "jq is not installed"
177177
core_exit.sh

lgsm/modules/update_ut99.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn_update_compare() {
153153
# The location where the builds are checked and downloaded.
154154
remotelocation="github.com"
155155

156-
if [ "$(command -v jq 2> /dev/null)" ]; then
156+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
157157
fn_print_fail_nl "jq is not installed"
158158
fn_script_log_fail "jq is not installed"
159159
core_exit.sh

lgsm/modules/update_vints.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn_update_compare() {
160160
# The location where the builds are checked and downloaded.
161161
remotelocation="vintagestory.at"
162162

163-
if [ "$(command -v jq 2> /dev/null)" ]; then
163+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
164164
fn_print_fail_nl "jq is not installed"
165165
fn_script_log_fail "jq is not installed"
166166
core_exit.sh

lgsm/modules/update_xnt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn_update_compare() {
160160
# The location where the builds are checked and downloaded.
161161
remotelocation="github.com"
162162

163-
if [ "$(command -v jq 2> /dev/null)" ]; then
163+
if [ ! "$(command -v jq 2> /dev/null)" ]; then
164164
fn_print_fail_nl "jq is not installed"
165165
fn_script_log_fail "jq is not installed"
166166
core_exit.sh

0 commit comments

Comments
 (0)