]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use sudo and the correct variable to `rm` the file
authorAlfredo Deza <adeza@redhat.com>
Wed, 9 Sep 2015 13:24:41 +0000 (09:24 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 9 Sep 2015 13:24:41 +0000 (09:24 -0400)
Seriously, how did this ever worked before :(

Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/setup_pbuilder

index 77a8a63092abb903f5c87f3baa6aca2138445c06..02ed4cbad65560477b16ebd0dde0d734a793a383 100755 (executable)
@@ -45,7 +45,7 @@ is_not_tar=`python -c "exec 'try: import tarfile;print int(not int(tarfile.is_ta
 file_size_kb=`du -k "$pbuild_tar" | cut -f1`
 
 if $is_not_tar; then
-    rm -f "$pbuild_tar/$DIST.tgz"
+    sudo rm -f "$pbuild_tar"
 fi
 
 if [ $file_size_kb -lt 1 ]; then