using proper template Xs

This commit is contained in:
Jeff Lindsay
2013-06-23 03:37:00 -07:00
parent 7fd8f4e437
commit 8a884f02f2

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -e
SELF=`which $0`; APP="$1"; TARGET="$2"
TMP=$(mktemp -d -t $TARGET)
TMP=$(mktemp -d -t "$TARGET.XXXXX")
trap "rm -rf $TMP" EXIT
cp -r $(dirname $SELF)/$APP/* $TMP
cd $TMP