Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] error line 1155: EDITOR: variable bounds not set #11

Open
webmastak opened this issue Nov 10, 2020 · 1 comment
Open

[SOLVED] error line 1155: EDITOR: variable bounds not set #11

webmastak opened this issue Nov 10, 2020 · 1 comment

Comments

@webmastak
Copy link

webmastak commented Nov 10, 2020

When editing, it gives an error - line 1155: EDITOR: variable bounds not set.

The problem was solved in the _verify_write_permissions function by adding the -E argument to sudo in line 367

_verify_write_permissions() {
  if [[ ! -w "${HOSTS_PATH}" ]]
  then
    if ((_AUTO_SUDO))
    then
      local _my_path
      _my_path="$(cd "$(dirname "$0")"; pwd)/${_ME}"

      sudo -E "${_my_path}" "${_SUBCOMMAND}" "${_COMMAND_PARAMETERS[@]:-}"
      exit $?
    else
      _exit_1 printf \
"You don't have permission to perform this operation. Try again with:
sudo !!\\n"
    fi
  fi
}
@webmastak webmastak changed the title Error - line 1155: EDITOR: variable bounds not set [SOLVED] Error - line 1155: EDITOR: variable bounds not set Nov 10, 2020
@webmastak webmastak changed the title [SOLVED] Error - line 1155: EDITOR: variable bounds not set [SOLVED] error line 1155: EDITOR: variable bounds not set Nov 10, 2020
@arafatx
Copy link

arafatx commented Dec 9, 2020

I can confirm this problem but putting the -E at that line doesn't solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants