From 9cda092fec1b16b58ddb84f57d2e434e346111c8 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 16 Jul 2016 23:45:47 +0200 Subject: [PATCH] Fix nxengine --- satellites/extrafiles/nxengine/nxengine.sh | 2 +- satellites/nxengine.sat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/satellites/extrafiles/nxengine/nxengine.sh b/satellites/extrafiles/nxengine/nxengine.sh index 1c8aaf4..82c06ec 100644 --- a/satellites/extrafiles/nxengine/nxengine.sh +++ b/satellites/extrafiles/nxengine/nxengine.sh @@ -18,7 +18,7 @@ files=" mkdir -p "$dir_runtime" for file in $files; do - [ ! -L "$dir_runtime/$(basename "$file")" ] && ln -sf -t "$dir_runtime" "$dir_prefix/$file" + [ ! -L "$dir_runtime/$(basename "$file")" ] && ln -sf -t "$dir_runtime" "/$dir_prefix/$file" done cd "$dir_runtime" && ./nx diff --git a/satellites/nxengine.sat b/satellites/nxengine.sat index 01f6b03..6c73ce3 100644 --- a/satellites/nxengine.sat +++ b/satellites/nxengine.sat @@ -38,8 +38,8 @@ cp -r CaveStory/data "$dir_install/$dir_prefix/share/nxengine/data" dir_runtime="$(option dir_runtime=\$HOME/.nxengine)" sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \ -e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \ - -e "s/%LIBDIR%/$(safe_sed "$dir_libdir")" \ - -e "s/%DATADIR%/$(safe_sed "$dir_datadir")" \ + -e "s/%LIBDIR%/$(safe_sed "$dir_libdir")/" \ + -e "s/%DATADIR%/$(safe_sed "$dir_datadir")/" \ nxengine.sh install -Dm755 nxengine.sh "$dir_install/$dir_prefix/$dir_bindir/nxengine"