archrelease: print deprecation warning when executed directly

This commit is contained in:
Levente Polyak 2023-01-12 21:30:29 +01:00
parent c839d52793
commit d402d5f308
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-tags.sh
set -e
# Deprecation warning
if [[ -z $_DEVTOOLS_COMMAND ]]; then
warning "${0##*/} is deprecated and will be removed. Use 'pkgctl release' instead"
fi
# parse command line options
FORCE=
while getopts ':f' flag; do