From b918faea0b568f21afccf87abc633e80dcdc0041 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 6 Jan 2024 15:34:48 -0500 Subject: Fix find not looking in CONFIG_DIR --- rom-desktop-entry-generator.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rom-desktop-entry-generator.sh b/rom-desktop-entry-generator.sh index 3c6d357..b02151f 100755 --- a/rom-desktop-entry-generator.sh +++ b/rom-desktop-entry-generator.sh @@ -63,13 +63,13 @@ build_desktop_file() { build_wrapper() { # find all romlist files in config if --system is not specified if [ -z "$1" ]; then - find "$BASEDIR/config/" -name 'romlist_*' | while read -r file; do + find "$CONFIG_DIR" -name 'romlist_*' | while read -r file; do parse_config "$file" done else while [ -n "$1" ]; do - if [ -r "$BASEDIR/config/romlist_$1" ]; then - parse_config "$BASEDIR/config/romlist_$1" + if [ -r "$CONFIG_DIR/romlist_$1" ]; then + parse_config "$CONFIG_DIR/romlist_$1" fi shift done @@ -279,7 +279,7 @@ while [ -n "$1" ]; do build) shift if [ -z "$TARGET_SYSTEMS" ]; then - TARGET_SYSTEMS="$(find "$BASEDIR/config" -type f -name 'romlist_*' -exec sh -c 'basename {} | cut -d '_' -f 2' \;)" + TARGET_SYSTEMS="$(find "$CONFIG_DIR" -type f -name 'romlist_*' -exec sh -c 'basename {} | cut -d '_' -f 2' \;)" fi build_wrapper $TARGET_SYSTEMS continue -- cgit