Skip to content

Instantly share code, notes, and snippets.

Created September 25, 2014 23:10
Show Gist options
  • Save anonymous/4a309b9e310d448ef6b7 to your computer and use it in GitHub Desktop.
Save anonymous/4a309b9e310d448ef6b7 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Sep 25, 2014.
    10 changes: 10 additions & 0 deletions tmpwrapper.sh.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/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" "$@"