From: Alfredo Deza Date: Wed, 9 Sep 2015 13:24:41 +0000 (-0400) Subject: use sudo and the correct variable to `rm` the file X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=066805a598e1050edfabcf585c7051c9397e069a;p=ceph-build.git use sudo and the correct variable to `rm` the file Seriously, how did this ever worked before :( Signed-off-by: Alfredo Deza --- diff --git a/ceph-build/build/setup_pbuilder b/ceph-build/build/setup_pbuilder index 77a8a6309..02ed4cbad 100755 --- a/ceph-build/build/setup_pbuilder +++ b/ceph-build/build/setup_pbuilder @@ -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