Skip to content

Instantly share code, notes, and snippets.

@x42
Created November 17, 2016 23:48
Show Gist options
  • Save x42/7484e610638fb125bfb7af19c7d5b9b9 to your computer and use it in GitHub Desktop.
Save x42/7484e610638fb125bfb7af19c7d5b9b9 to your computer and use it in GitHub Desktop.
#/bin/sh
set -e
for d in ~/.u-he/*/dialog.[36][24]; do
if test -f $d.real; then continue; fi
mv "$d" "$d.real"
cat > $d << EOF
#!/bin/sh
unset LD_LIBRARY_PATH
exec \$(readlink -f \$0).real "\$@"
EOF
chmod +x $d
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment