diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2023-01-12 21:30:56 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-20 00:08:11 +0200 |
commit | 1ae09b43af632c3a61135dc295c9c1b12b227669 (patch) | |
tree | e0d5ad56e918b1909dcbcfa0d29be9d3ba4a583c | |
parent | d402d5f3081d9e0a1f269e3209b52c23bd355ff3 (diff) | |
download | devtools-1ae09b43af632c3a61135dc295c9c1b12b227669.tar.xz |
commitpkg: print deprecation warning when executed directly
-rw-r--r-- | src/commitpkg.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in index f80a6cd..5f29881 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -55,6 +55,11 @@ fi cmd=${0##*/} +# Deprecation warning +if [[ -z $_DEVTOOLS_COMMAND ]]; then + warning "${cmd} is deprecated and will be removed. Use 'pkgctl release' instead" +fi + if [[ ! -f PKGBUILD ]]; then die 'No PKGBUILD file' fi |