Skip to content

Commit 89e7f60

Browse files
committed
formatting
1 parent 3960d3e commit 89e7f60

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lgsm/functions/command_update_linuxgsm.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,31 +151,31 @@ fi
151151
echo -en "checking ${remotereponame} config lgsm-template.cfg...\c"
152152
fn_script_log_info "Checking ${remotereponame} config lgsm-template.cfg"
153153
if [ "${remotereponame}" == "GitHub" ]; then
154-
curl --connect-timeout 10 -IsfL "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg" 1>/dev/null
154+
curl --connect-timeout 10 -IsfL "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg" 1>/dev/null
155155
else
156-
curl --connect-timeout 10 -IsfL "https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg" 1>/dev/null
156+
curl --connect-timeout 10 -IsfL "https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg" 1>/dev/null
157157
fi
158158
if [ $? != "0" ]; then
159-
fn_print_fail_eol_nl
160-
fn_script_log_fatal "Checking ${remotereponame} config lgsm-template.cfg"
161-
fn_script_log_fatal "Curl returned error: $?"
162-
core_exit.sh
159+
fn_print_fail_eol_nl
160+
fn_script_log_fatal "Checking ${remotereponame} config lgsm-template.cfg"
161+
fn_script_log_fatal "Curl returned error: $?"
162+
core_exit.sh
163163
fi
164164

165165
if [ "${remotereponame}" == "GitHub" ]; then
166-
config_file_diff=$(diff "${configdirdefault}/config-lgsm/lgsm-template.cfg" <(curl --connect-timeout 10 -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg"))
166+
config_file_diff=$(diff "${configdirdefault}/config-lgsm/lgsm-template.cfg" <(curl --connect-timeout 10 -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg"))
167167
else
168-
config_file_diff=$(diff "${configdirdefault}/config-lgsm/lgsm-template.cfg" <(curl --connect-timeout 10 -s "https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg"))
168+
config_file_diff=$(diff "${configdirdefault}/config-lgsm/lgsm-template.cfg" <(curl --connect-timeout 10 -s "https://bitbucket.org/${githubuser}/${githubrepo}/raw/${githubbranch}/lgsm/config-default/config-lgsm/lgsm-template.cfg"))
169169
fi
170170

171171
if [ "${config_file_diff}" != "" ]; then
172-
fn_print_update_eol_nl
173-
fn_script_log_update "Checking ${remotereponame} config lgsm-template.cfg"
174-
rm -f "${configdirdefault:?}/config-lgsm/lgsm-template.cfg"
175-
fn_fetch_file_github "lgsm/config-default/config-lgsm" "lgsm-template.cfg" "${configdirdefault}/config-lgsm" "nochmodx" "norun" "noforce" "nohash"
172+
fn_print_update_eol_nl
173+
fn_script_log_update "Checking ${remotereponame} config lgsm-template.cfg"
174+
rm -f "${configdirdefault:?}/config-lgsm/lgsm-template.cfg"
175+
fn_fetch_file_github "lgsm/config-default/config-lgsm" "lgsm-template.cfg" "${configdirdefault}/config-lgsm" "nochmodx" "norun" "noforce" "nohash"
176176
else
177-
fn_print_ok_eol_nl
178-
fn_script_log_pass "Checking ${remotereponame} config lgsm-template.cfg"
177+
fn_print_ok_eol_nl
178+
fn_script_log_pass "Checking ${remotereponame} config lgsm-template.cfg"
179179
fi
180180

181181
# Check distro csv. ${datadir}/${distroid}-${distroversioncsv}.csv

0 commit comments

Comments
 (0)