Merge pull request #475 from cedwards/jls_patch

change new PKG option from -P to -H
This commit is contained in:
Christer Edwards
2021-12-23 14:19:10 -07:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st
JAILS="${JAILS} ${_jail}"
fi
done
elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-P' ] || [ "${TARGET}" = '--pkg' ]; then
elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-H' ] || [ "${TARGET}" = '--host' ]; then
TARGET="${1}"
USE_HOST_PKG=1
JAILS="${TARGET}"
@@ -191,6 +191,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st
;;
esac
fi
export USE_HOST_PKG
export TARGET
export JAILS
fi

View File

@@ -31,7 +31,7 @@
. /usr/local/share/bastille/common.sh
usage() {
error_exit "Usage: bastille pkg [-P|--pkg] TARGET command [args]"
error_exit "Usage: bastille pkg [-H|--host] TARGET command [args]"
}
# Handle special-case commands first.