Check if pkgdir exists in create_package
Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6b776c82e7
commit
92a14eab59
1 changed files with 5 additions and 0 deletions
|
@ -502,6 +502,11 @@ tidy_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
create_package() {
|
create_package() {
|
||||||
|
if [ ! -d "$pkgdir" ]; then
|
||||||
|
error "$(gettext "Missing pkg/ directory, aborting...")"
|
||||||
|
exit 1 # $E_MISSING_PKGDIR # TODO: error code
|
||||||
|
fi
|
||||||
|
|
||||||
cd "$startdir"/pkg
|
cd "$startdir"/pkg
|
||||||
msg "$(gettext "Creating package...")"
|
msg "$(gettext "Creating package...")"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue