summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-01-09 21:58:26 -0500
committerLouie S <louie@example.com>2024-01-09 21:58:26 -0500
commitecd74e21ca0c3853ba300ce3d405ecf7c4fb69ec (patch)
tree00dba3dfbd19315554a7d1068e73aa0983692cc9
parentb918faea0b568f21afccf87abc633e80dcdc0041 (diff)
Fix references to system configuration
-rwxr-xr-xrom-desktop-entry-generator.sh6
1 files changed, 3 insertions, 3 deletions
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"