sys-kernel/coreos-sources: Fix revbump.sh error if run without args

This commit is contained in:
Benjamin Gilbert 2017-05-01 17:51:27 -07:00
parent 472522846a
commit d034ddc21f

View File

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