summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2012-01-11 21:43:33 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2012-01-11 21:43:33 -0600
commit825ac89cfa857e4379e9e1baf6d470cf9e583dde (patch)
tree56272e77966387d0534ca276cc0ce4001c9dc338
parent971e5b7d0cd614e1be3a82380ef16911f2d9cefe (diff)
fullpkg: corrected some error.
-rwxr-xr-xfullpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/fullpkg b/fullpkg
index fe74432..bccd816 100755
--- a/fullpkg
+++ b/fullpkg
@@ -27,6 +27,7 @@ done
shift $(( OPTIND - 1 ))
-fullpkg-find "$1" && fullpkg-build -N "$1"
+build_dir="${1:-$(mktemp -d /tmp/fullpkg.XXXXXX)}"
+fullpkg-find "$build_dir" && fullpkg-build -N "$build_dir"
exit 0