Replace BRANCH with HARDOCP_BRANCH to avoid clash when setting the variable externally.
Select the branch externally via HARDOCP_BRANCH variable (use with sudo -E).