mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
make: make this easier (and safer) for users
This commit is contained in:
parent
635dd1b833
commit
ef49026664
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -332,7 +332,8 @@ package: lint-plist manifest-check package-check clean-wrksrc
|
|||
|
||||
upgrade-check:
|
||||
@if ! ${PKG} info ${CORE_NAME} > /dev/null; then \
|
||||
echo ">>> Cannot find package. Please run 'opnsense-update -t ${CORE_NAME}'" >&2; \
|
||||
REAL_NAME=$$(pkg which -q /usr/local/opnsense/version/core); \
|
||||
echo ">>> Cannot find installed package. Use CORE_NAME=$${REAL_NAME%-*} instead." >&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
@if [ "$$(${VERSIONBIN} -vH)" = "${CORE_PKGVERSION} ${CORE_HASH}" ]; then \
|
||||
|
|
|
|||
Loading…
Reference in a new issue