Skip to content

Instantly share code, notes, and snippets.

@diligasi
Created January 28, 2018 21:18
Show Gist options
  • Save diligasi/72423ae3b12994c25b1d4ab36d14708d to your computer and use it in GitHub Desktop.
Save diligasi/72423ae3b12994c25b1d4ab36d14708d to your computer and use it in GitHub Desktop.
Make uru multi-platform command working on git bash
#!/bin/bash
# Created by Diligasi
export URU_INVOKER='batch';
uru_rt.exe "$1";
if [ "x$URU_HOME" == "x" ]; then
if hash "$USERPROFILE\.uru\uru_lackee.bat"; then cmd "/C $USERPROFILE\.uru\uru_lackee.bat"; fi
else
if hash "$URU_HOME\uru_lackee.bat"; then cmd "/C $URU_HOME\uru_lackee.bat"; fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment