inst() {
local dstdir="${dstdir:-"$initdir"}"
local _ret _hostonly_install
- if [[ $1 == "-H" ]]; then
+ if [[ $1 == "-H" ]] && [[ $hostonly ]]; then
_hostonly_install="-H"
shift
fi
inst_simple() {
local dstdir="${dstdir:-"$initdir"}"
local _ret _hostonly_install
- if [[ $1 == "-H" ]]; then
+ if [[ $1 == "-H" ]] && [[ $hostonly ]]; then
_hostonly_install="-H"
shift
fi
inst_symlink() {
local _ret _hostonly_install
- if [[ $1 == "-H" ]]; then
+ if [[ $1 == "-H" ]] && [[ $hostonly ]]; then
_hostonly_install="-H"
shift
fi
inst_multiple() {
local dstdir="${dstdir:-"$initdir"}"
local _ret _hostonly_install
- if [[ $1 == "-H" ]]; then
+ if [[ $1 == "-H" ]] && [[ $hostonly ]]; then
_hostonly_install="-H"
shift
fi