[arch-projects] [devtools] [PATCH 6/7] makechrootpkg: Adjust to work properly with `set -e`

Luke Shumaker lukeshu at lukeshu.com
Mon Jan 15 16:57:58 UTC 2018


From: Luke Shumaker <lukeshu at parabola.nu>

This worked properly until eab5aba.
---
 makechrootpkg.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index c7fe076..a6c54cc 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -205,7 +205,7 @@ EOF
 	{
 		printf '#!/bin/bash\n'
 		declare -f _chrootbuild
-		declare -p SOURCE_DATE_EPOCH 2>/dev/null
+		declare -p SOURCE_DATE_EPOCH 2>/dev/null || true
 		printf '_chrootbuild "$@" || exit\n'
 
 		if [[ $run_namcap = true ]]; then
-- 
2.15.1


More information about the arch-projects mailing list