Skip to content

Commit 2c4da53

Browse files
authored
fix: Correct CSV file path in update-lgsm command (#4917)
The distro CSV file was being fetched with an absolute path instead of a repository-relative path, causing malformed URLs like /master//home/user/lgsm/data/debian-12.csv Changed fn_fetch_file_github first parameter from "${datadir}" to "lgsm/data" to match the correct repository path structure. Fixes #4856: ERROR: Downloading debian-12.csv on update-lgsm
1 parent 58a005b commit 2c4da53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lgsm/modules/command_update_linuxgsm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ if [ -f "${datadir}/${distroid}-${distroversioncsv}.csv" ]; then
188188
fn_print_update_eol_nl
189189
fn_script_log "Checking ${remotereponame} ${distroid}-${distroversioncsv}.csv"
190190
rm -f "${datadir:?}/${distroid}-${distroversioncsv}.csv"
191-
fn_fetch_file_github "${datadir}" "${distroid}-${distroversioncsv}.csv" "${datadir}" "nochmodx" "norun" "noforce" "nohash"
191+
fn_fetch_file_github "lgsm/data" "${distroid}-${distroversioncsv}.csv" "${datadir}" "nochmodx" "norun" "noforce" "nohash"
192192
else
193193
fn_print_skip_eol_nl
194194
fn_script_log_pass "Checking ${remotereponame} ${distroid}-${distroversioncsv}.csv"

0 commit comments

Comments
 (0)