mirror of
https://github.com/libretro/libretro-super
synced 2025-04-18 02:43:02 +00:00
database: Add " to fix directories with spaces
Reported by Marcello on Discord.
This commit is contained in:
parent
f4822b73c8
commit
4b121e8c84
@ -38,10 +38,10 @@ die()
|
|||||||
echo $LIBRETRODB_BASE
|
echo $LIBRETRODB_BASE
|
||||||
|
|
||||||
build_libretrodb() {
|
build_libretrodb() {
|
||||||
cd $BASE_DIR
|
cd "$BASE_DIR"
|
||||||
if [ -d "$LIBRETRODB_BASE_DIR" ]; then
|
if [ -d "$LIBRETRODB_BASE_DIR" ]; then
|
||||||
echo "=== Building libretrodb ==="
|
echo "=== Building libretrodb ==="
|
||||||
cd ${LIBRETRODB_BASE_DIR}/
|
cd "${LIBRETRODB_BASE_DIR}"
|
||||||
|
|
||||||
if [ -z "${NOCLEAN}" ]; then
|
if [ -z "${NOCLEAN}" ]; then
|
||||||
make -j$JOBS clean || die "Failed to clean ${2}"
|
make -j$JOBS clean || die "Failed to clean ${2}"
|
||||||
@ -53,10 +53,10 @@ build_libretrodb() {
|
|||||||
# $1 is name
|
# $1 is name
|
||||||
# $2 is match key
|
# $2 is match key
|
||||||
build_libretro_database() {
|
build_libretro_database() {
|
||||||
cd $BASE_DIR
|
cd "$BASE_DIR"
|
||||||
if [ -d "$LIBRETRODB_BASE_DIR" ]; then
|
if [ -d "$LIBRETRODB_BASE_DIR" ]; then
|
||||||
DBFILE=${BASE_DIR}/${LIBRETRODB_BASE_DIR}/db.rdb
|
DBFILE=${BASE_DIR}/${LIBRETRODB_BASE_DIR}/db.rdb
|
||||||
cd ${LIBRETRODB_BASE_DIR}/
|
cd "${LIBRETRODB_BASE_DIR}"
|
||||||
echo "=== Building ${1} ==="
|
echo "=== Building ${1} ==="
|
||||||
COMMAND='${BASE_DIR}/${LIBRETRODB_BASE_DIR}/c_converter ${DBFILE} "${2}"'
|
COMMAND='${BASE_DIR}/${LIBRETRODB_BASE_DIR}/c_converter ${DBFILE} "${2}"'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user