Merge pull request #2555 from bgilbert/revbump-usage

sys-kernel/coreos-sources: Fix revbump.sh error if run without args
This commit is contained in:
Benjamin Gilbert 2017-05-01 17:53:03 -07:00 committed by GitHub
commit bc828bb67c

View File

@ -2631,7 +2631,7 @@ EOF
}
new_pvr="$1"
srcdir="$(realpath $2)"
srcdir="$2"
if [[ -z "${new_pvr}" || -z "${srcdir}" ]]; then
echo "Usage: $0 <new-PVR> <dir-with-git-format-patch-output>"
@ -2639,6 +2639,7 @@ if [[ -z "${new_pvr}" || -z "${srcdir}" ]]; then
exit 2
fi
srcdir="$(realpath $srcdir)"
old_ebuild=$(echo coreos-sources-*.ebuild)
new_ebuild="coreos-sources-${new_pvr}.ebuild"