Skip to content

Instantly share code, notes, and snippets.

@dlgg
Forked from anonymous/tmpwrapper.sh.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save dlgg/75e7df4b73788ef49b1f to your computer and use it in GitHub Desktop.
Save dlgg/75e7df4b73788ef49b1f to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: $0 script args ..."
exit 1
fi
SCRIPT=$1
shift
env -i HOME="$HOME" PATH="$PATH" SHELL="$SHELL" "$SCRIPT" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment