1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 13:27:35 +00:00

Ports: Fix a typo in get_new_config_guess

While we're at it, we might as well replace the download arguments in
`get_new_config_{sub,guess}` with the variable we defined earlier.
This commit is contained in:
Tim Schumacher 2022-05-25 12:44:25 +02:00 committed by Linus Groh
parent 2ab8d474c6
commit ff90647958

View file

@ -125,7 +125,7 @@ get_new_config_sub() {
exit 1
fi
if ! run grep -q serenity "$config_sub"; then
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub" "${1:-config.sub}" false
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub" "${config_sub}" false
fi
}
@ -136,7 +136,7 @@ get_new_config_guess() {
exit 1
fi
if ! run grep -q SerenityOS "$config_guess"; then
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess" "${1:-config_guess}" false
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess" "${config_guess}" false
fi
}