mirror of
https://github.com/opnsense/core.git
synced 2026-12-04 17:38:39 +00:00
make: make this easier (and safer) for users
This commit is contained in:
1 parent
635dd1b833
commit
ef49026664
1 file changed
+2
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user