summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-23 13:15:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-23 13:15:34 -0400
commit43b6361c5a81fcb0d1c1bb95cb75643684aad5ab (patch)
tree687924ae674686bc91d4acfc98bd8e8475b77274
parentc76c044246b13457e00a82c7fd9550e061b4b406 (diff)
env sanitization
-rwxr-xr-xstandalone/android/buildchroot7
1 files changed, 7 insertions, 0 deletions
diff --git a/standalone/android/buildchroot b/standalone/android/buildchroot
index 3f4c8eaa9..b759ae6ce 100755
--- a/standalone/android/buildchroot
+++ b/standalone/android/buildchroot
@@ -8,6 +8,13 @@ fi
debootstrap --arch=i386 stable debian-stable-android
cp $0-inchroot debian-stable-android/tmp
cp $0-inchroot-asuser debian-stable-android/tmp
+
+# Don't use these vars in the chroot.
+unset TMP
+unset TEMP
+unset TMPDIR
+unset TEMPDIR
+
chroot debian-stable-android "tmp/$(basename $0)-inchroot"
echo