summarylogtreecommitdiffstats
path: root/unreal-engine-4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'unreal-engine-4.sh')
-rwxr-xr-xunreal-engine-4.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/unreal-engine-4.sh b/unreal-engine-4.sh
index 1fd3837a0158..9c69511f337d 100755
--- a/unreal-engine-4.sh
+++ b/unreal-engine-4.sh
@@ -29,8 +29,8 @@ fi
UE4desktopFileChecksum="$(sha256sum "${HOME}/local/share/applications/com.unrealengine.UE4Editor.desktop" | cut -f 1 -d ' ')"
if [ "${UE4desktopFileChecksum}" == "ChecksumPlaceholder" ]; then
- UE4editorLocation=$(find InstalledLocationPlaceholder -type f -iname 'UE4Editor')
- UE4editorPath=$(${UE4editorLocation} | sed 's/UE4Editor//')
+ UE4editorLocation="$(find InstalledLocationPlaceholder -type f -iname 'UE4Editor')"
+ UE4editorPath="$(echo ${UE4editorLocation/UE4Editor/})"
sed -i "7c\Exec=${UE4editorLocation} %F" "${HOME}/local/share/applications/com.unrealengine.UE4Editor.desktop"
sed -i "14c\Path=${UE4editorPath}" "${HOME}/local/share/applications/com.unrealengine.UE4Editor.desktop"