summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 15:34:48 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-20 15:34:48 +0100
commitff305c9ba013a854730ae32f756b2946e5cd8753 (patch)
tree90900181705bde99977fa18b5c0e1ad8117dc022 /bin
parentd48b4bf31570862f67fff26b11ce05e6e9d1e255 (diff)
downloadbuildscripts-ff305c9ba013a854730ae32f756b2946e5cd8753.tar.gz
buildscripts-ff305c9ba013a854730ae32f756b2946e5cd8753.tar.bz2
buildscripts-ff305c9ba013a854730ae32f756b2946e5cd8753.zip
permission fix for temp dirs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/itzks-build-package3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/itzks-build-package b/bin/itzks-build-package
index e010d6a..ba1d584 100755
--- a/bin/itzks-build-package
+++ b/bin/itzks-build-package
@@ -30,6 +30,8 @@ set_vars() {
USE_SUDO="yes"
PDEBUILD="pdebuild --pbuilder qemubuilder"
TEMP_BASE="$HOME/tmp/"
+ mkdir "$TEMP_BASE"
+ chmod 2770 "$TEMP_BASE"
# first argv is the name of the Git project
PROJECT=$1
@@ -141,6 +143,7 @@ build_packages() {
for l_CODENAME in $CODENAMES; do
TEMP_DIR="$(mktemp -d --tmpdir=$TEMP_BASE)"
mkdir -p $TEMP_DIR/$PROJECT
+ chmod 2770 $TEMP_DIR -Rf
git clone --local $PROJECT_DIR $TEMP_DIR/$PROJECT/
cd $TEMP_DIR/$PROJECT
git checkout $CHECKOUT || git checkout master