Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

package-register fails with package name but no version

  • Loading branch information...
commit e1ac29d4c9ed099a0500967d740721a1f1a7ffac 1 parent 0b0943b
@rtomayko authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 rpg-package-register.sh
View
10 rpg-package-register.sh
@@ -17,10 +17,14 @@ test "$1" = '-f' && {
# Under the second synopsis form, we first perform a `rpg-fetch` on the
# `<package>` and `<version>` given and then continue with the resulting
# filename.
-if test $# -eq 2 && ! expr -- "$1" : '.*\.gem' >/dev/null
+if ! expr -- "$1" : '.*\.gem' >/dev/null
then
- gemfile=$(rpg-fetch "$1" "$2")
- set -- "$gemfile"
+ if test $# -eq 2
+ then gemfile=$(rpg-fetch "$1" "$2")
+ set -- "$gemfile"
+ else echo "$PROGNAME: '$1' package version required"
+ exit 2
+ fi
fi
for file in "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.