xbps-src: quote $wrksrc

Allows spaces in the directory name
This commit is contained in:
beefcurtains 2015-07-29 08:17:37 +00:00
parent 9c34767b3e
commit 3c424a73f6
5 changed files with 11 additions and 11 deletions

View file

@ -32,7 +32,7 @@ if [ -f "$XBPS_CONFIGURE_DONE" ]; then
exit 0
fi
cd $wrksrc || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc].\n"
cd "$wrksrc" || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc].\n"
if [ -n "$build_wrksrc" ]; then
cd $build_wrksrc || \
msg_error "$pkgver: cannot access build_wrksrc directory [$build_wrksrc].\n"