summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2011-09-21 15:02:03 -0600
committerScott Moreau <oreaus@gmail.com>2011-09-21 15:02:03 -0600
commit8f41133b142952c388388d505d0b15d8f979b404 (patch)
tree69bae7b98046dcab2656671569566fc963466acb
parent4b0281594e009e9a0b949f7eba372e0d134f1bb6 (diff)
downloadscripts-8f41133b142952c388388d505d0b15d8f979b404.tar.gz
scripts-8f41133b142952c388388d505d0b15d8f979b404.tar.bz2
Revert "Don't use escalated permissions when cleaning components."
This reverts commit 7e47556723f4683ca5c455960ba235ece1eef41f.
-rwxr-xr-xbuild_compiz++6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_compiz++ b/build_compiz++
index 6d1af5d..bf8149b 100755
--- a/build_compiz++
+++ b/build_compiz++
@@ -426,7 +426,7 @@ for COMPONENT in "\${plugin_list[@]}"; do
cd \$SRC_DIR/\$COMPONENT
git checkout master
git reset --hard master
- git clean -fdx
+ sudo git clean -fdx
git pull
fi
if [[ "\$COMPONENT" = "swap" ]]; then
@@ -562,8 +562,8 @@ for COMPONENT in "${components[@]}"; do
cd $SRC_DIR/$COMPONENT
git checkout master
git reset --hard origin/master
- git clean -fdx
- rm -rf build
+ sudo git clean -fdx
+ sudo rm -rf build
if ! git pull; then
echo "Error occured while trying to update $COMPONENT. Attempting fresh clone.."
$SUDO rm -rf $SRC_DIR/$COMPONENT