From dfe131f601c84bf4a8c9a29857999d5b300da99d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 3 Jan 2018 11:15:06 +0800 Subject: [PATCH] scripts/build_utils.sh: fix test for pbuilder base.tar Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 38ce9923..ffe80a7a 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -374,7 +374,7 @@ setup_pbuilder() { 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 -- 2.39.5