Skip to content

Commit 287b447

Browse files
committed
bootstrap-tarballs: Use rm -f instead of || true
The use of `|| true` will cause an error message to be printed by `rm` which may lead QA personnel to believe that there is something wrong while there is not. -f will simply ignore nonexistent files. ``` rm: cannot remove 'nosuchfile': No such file or directory ``` Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent be0f5c0 commit 287b447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-scripts/bootstrap-tarballs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ set -e
5656

5757
# Build tarball from core repository
5858
cd "$BASEDIR"/core
59-
rm cfengine-3.*.tar.gz || true
59+
rm -f cfengine-3.*.tar.gz
6060
git rev-parse HEAD > "$BASEDIR"/output/core-commitID
6161
# Configure in order to run "make dist", deleted later.
6262
./configure -C
@@ -66,7 +66,7 @@ make distclean
6666

6767
# Build tarballs from masterfiles repository
6868
cd "$BASEDIR"/masterfiles
69-
rm cfengine-masterfiles*.tar.gz || true
69+
rm -f cfengine-masterfiles*.tar.gz
7070
git rev-parse HEAD > "$BASEDIR"/output/masterfiles-commitID
7171
# Configure in order to run "make dist", deleted later.
7272
./configure

0 commit comments

Comments
 (0)