Browse Source

regression(update): fix variable ref #4146

pull/4178/head
H3o66 3 years ago
parent
commit
b2d521c3bb
  1. 2
      lgsm/modules/update_factorio.sh
  2. 2
      lgsm/modules/update_vintagestory.sh

2
lgsm/modules/update_factorio.sh

@ -18,7 +18,7 @@ fn_update_localbuild() {
# Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}"
# Uses executable to get local build.
if [ -d "${exutabledir}" ]; then
if [ -d "${executabledir}" ]; then
cd "${executabledir}" || exit
localbuild=$(${executable} --version | grep "Version:" | awk '{print $2}')
fi

2
lgsm/modules/update_vintagestory.sh

@ -18,7 +18,7 @@ fn_update_localbuild() {
# Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}"
# Uses executable to get local build.
if [ -d "${exutabledir}" ]; then
if [ -d "${executabledir}" ]; then
cd "${executabledir}" || exit
localbuild="$(${preexecutable} ${executable} --version | sed '/^[[:space:]]*$/d')"
fi

Loading…
Cancel
Save