diff options
author | Luis Rascao <[email protected]> | 2016-09-05 22:20:50 +0100 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2016-10-28 12:39:17 +0100 |
commit | cb154f3a54c90000eae9fd582304872eec9db54e (patch) | |
tree | bd5b258454426e39bf32c8a00d53f45d006ea2d0 /priv | |
parent | faddc92b17ece20a7604929adfc573ef81f17404 (diff) | |
download | relx-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-x | priv/templates/extended_bin | 5 | ||||
-rw-r--r-- | priv/templates/extended_bin_windows | 5 |
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% ) |