summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-01-06 15:34:48 -0500
committerLouie S <louie@example.com>2024-01-06 15:34:48 -0500
commitb918faea0b568f21afccf87abc633e80dcdc0041 (patch)
tree6bc40350ab7543c99e9032a9a2854de5c2951f2a
parent027c4d1bce99fc0666361a83762670bc0ef687da (diff)
Fix find not looking in CONFIG_DIR
-rwxr-xr-xrom-desktop-entry-generator.sh8
1 files 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