Browse Source

fix(update): incorrect variable name

pull/4179/head
Daniel Gibbs 3 years ago
parent
commit
2eb229a785
No known key found for this signature in database GPG Key ID: 7CA38B43F78F12FE
  1. 2
      lgsm/functions/update_factorio.sh
  2. 2
      lgsm/functions/update_vintagestory.sh

2
lgsm/functions/update_factorio.sh

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

2
lgsm/functions/update_vintagestory.sh

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

Loading…
Cancel
Save