Skip to content

Instantly share code, notes, and snippets.

@grapefrukt
Created May 27, 2016 14:18
Show Gist options
  • Save grapefrukt/2cebad610a79dfc5566c56a09cefdb64 to your computer and use it in GitHub Desktop.
Save grapefrukt/2cebad610a79dfc5566c56a09cefdb64 to your computer and use it in GitHub Desktop.
Run script that fixes missing libraries for 32 bit builds only
#!/bin/bash
# making sure we're in the correct dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; cd ${DIR}
# get the architecture
arch=$(uname -m)
# this hack is only needed on 32 bit for some reason
if [[ ''$arch'' == ''i686'' ]]; then
# make sure libraries are loaded from the local directory
# it's not elegant, but it works
export LD_LIBRARY_PATH=${DIR}
fi
# start the game
./rymdkapsel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment