]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_pbuilder: fix boolean test 660/head
authorDan Mick <dan.mick@redhat.com>
Fri, 3 Feb 2017 22:22:11 +0000 (14:22 -0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 10 Mar 2017 05:04:57 +0000 (21:04 -0800)
three times

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ceph-build/build/setup_pbuilder
ceph-dev-build/build/setup_pbuilder
ceph-dev-new-build/build/setup_pbuilder

index 43ce91768d819772eec0457cd57da5d632c6e838..f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a 100755 (executable)
@@ -55,7 +55,7 @@ pbuild_tar="$basedir/$DIST.tgz"
 is_not_tar=`python -c "exec 'try: import tarfile;print int(not int(tarfile.is_tarfile(\"$pbuild_tar\")))\nexcept IOError: print 1'"`
 file_size_kb=`du -k "$pbuild_tar" | cut -f1`
 
-if $is_not_tar; then
+if [ "$is_not_tar" = "1"] ; then
     sudo rm -f "$pbuild_tar"
 fi
 
index 43ce91768d819772eec0457cd57da5d632c6e838..f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a 100755 (executable)
@@ -55,7 +55,7 @@ pbuild_tar="$basedir/$DIST.tgz"
 is_not_tar=`python -c "exec 'try: import tarfile;print int(not int(tarfile.is_tarfile(\"$pbuild_tar\")))\nexcept IOError: print 1'"`
 file_size_kb=`du -k "$pbuild_tar" | cut -f1`
 
-if $is_not_tar; then
+if [ "$is_not_tar" = "1"] ; then
     sudo rm -f "$pbuild_tar"
 fi
 
index 43ce91768d819772eec0457cd57da5d632c6e838..f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a 100755 (executable)
@@ -55,7 +55,7 @@ pbuild_tar="$basedir/$DIST.tgz"
 is_not_tar=`python -c "exec 'try: import tarfile;print int(not int(tarfile.is_tarfile(\"$pbuild_tar\")))\nexcept IOError: print 1'"`
 file_size_kb=`du -k "$pbuild_tar" | cut -f1`
 
-if $is_not_tar; then
+if [ "$is_not_tar" = "1"] ; then
     sudo rm -f "$pbuild_tar"
 fi