From ecd74e21ca0c3853ba300ce3d405ecf7c4fb69ec Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 9 Jan 2024 21:58:26 -0500 Subject: Fix references to system configuration --- rom-desktop-entry-generator.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rom-desktop-entry-generator.sh') diff --git a/rom-desktop-entry-generator.sh b/rom-desktop-entry-generator.sh index b02151f..8986844 100755 --- a/rom-desktop-entry-generator.sh +++ b/rom-desktop-entry-generator.sh @@ -36,8 +36,8 @@ build_desktop_file() { echo "Skipping: missing SYSTEM" >> "$STDOUT_LOG" return fi - if [ ! -r "$BASEDIR/config/systems/$SYSTEM" ]; then - echo "Skipping: No configuration exists for SYSTEM" >> "$STDOUT_LOG" + if [ ! -r "$(dirname "$CONFIG_DIR")/systems/$SYSTEM" ]; then + echo "Skipping: No configuration exists for $SYSTEM" >> "$STDOUT_LOG" return fi if ! eval test -e "\"$ROMPATH\""; then @@ -47,7 +47,7 @@ build_desktop_file() { unset launcher unset flags # shellcheck source=/dev/null - . "$BASEDIR/config/systems/$SYSTEM" + . "$(dirname "$CONFIG_DIR")/systems/$SYSTEM" mkdir -p "$DESKTOP_ENTRY_OUTPUT_DIR/$SYSTEM" echo "[Desktop Entry]" > "$OUTPUT" -- cgit