aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2016-09-05 22:20:50 +0100
committerLuis Rascao <[email protected]>2016-10-28 12:39:17 +0100
commitcb154f3a54c90000eae9fd582304872eec9db54e (patch)
treebd5b258454426e39bf32c8a00d53f45d006ea2d0 /priv
parentfaddc92b17ece20a7604929adfc573ef81f17404 (diff)
downloadrelx-cb154f3a54c90000eae9fd582304872eec9db54e.tar.gz
relx-cb154f3a54c90000eae9fd582304872eec9db54e.tar.bz2
relx-cb154f3a54c90000eae9fd582304872eec9db54e.zip
Fix upgrade/downgrade/install usage
The second argument is actually the version and not the package name.
Diffstat (limited to 'priv')
-rwxr-xr-xpriv/templates/extended_bin5
-rw-r--r--priv/templates/extended_bin_windows5
2 files changed, 4 insertions, 6 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 6eee7a5..2941083 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -314,9 +314,8 @@ case "$1" in
upgrade|downgrade|install)
if [ -z "$2" ]; then
- echo "Missing package argument"
- echo "Usage: $REL_NAME $1 {package base name}"
- echo "NOTE {package base name} MUST NOT include the .tar.gz suffix"
+ echo "Missing version argument"
+ echo "Usage: $REL_NAME $1 {version}"
exit 1
fi
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index d892ea6..a4cc42c 100644
--- a/priv/templates/extended_bin_windows
+++ b/priv/templates/extended_bin_windows
@@ -175,9 +175,8 @@ set description=Erlang node %node_name% in %rootdir%
:: Relup and reldown
:relup
@if "" == "%2" (
- echo Missing package argument
- echo Usage: %rel_name% %1 {package base name}
- echo NOTE {package base name} MUST NOT include the .tar.gz suffix
+ echo Missing version argument
+ echo Usage: %rel_name% %1 {version}
set ERRORLEVEL=1
exit /b %ERRORLEVEL%
)