mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
sys-kernel/coreos-sources: Fix revbump.sh error if run without args
This commit is contained in:
parent
472522846a
commit
d034ddc21f
@ -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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user