]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: if regress/tmp don't exist avoid chmod: cannot access 'tmp'
authorAlain Spineux <alain@baculasystems.com>
Tue, 20 Sep 2022 07:49:31 +0000 (09:49 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:59 +0000 (13:56 +0200)
- avoid the disturbing message below if regress/tmp don't exist
chmod: cannot access 'tmp': No such file or directory

regress/Makefile

index 8b4986a9dec83a25e5841ffefe8a5e7bbcab2f04..ac1e24600cd0fc34faa5957cf4f3e6faedf5e48d 100644 (file)
@@ -24,6 +24,7 @@ setup: bacula sed
 #  is in weird-files, so we load and run it only on Linux machines.
 #
 bacula: all
+       @test -e tmp && chmod -R u+rwx tmp || true
        @rm -rf bin build weird-files tmp
        @rm -f w.tar.gz w.tar
        @cp weird-files.tar.gz w.tar.gz